Skip to content

feat: Refactor cacct app to configure TSDB custom queries - #585

Merged
mahendrapaipuri merged 4 commits into
mainfrom
feat/cacct/instant-queries-support
Sep 1, 2026
Merged

feat: Refactor cacct app to configure TSDB custom queries#585
mahendrapaipuri merged 4 commits into
mainfrom
feat/cacct/instant-queries-support

Conversation

@mahendrapaipuri

Copy link
Copy Markdown
Collaborator
  • This commit adds support to configure custom instant queries to TSDB so that users that need metrics other than the ones stored in API server can be queried and saved to CSV.

  • The internal TSDB client has been refactored to return result vectors for instant queries to keep all the labels in the results. Consequently TSDB updater has been refactored to fetch UUID from the result vectors before adding them to unit models

  • cacct config has been modified to add new instant and range queries along with their names and help text so that it will be added to the end users' metrics file for better comprehension

  • Unnecessary labels will be stripped from TS data for the end users

  • Updated e2e tests and new tests to verify the added functionalities

Closes #557

* This commit adds support to configure custom instant queries to TSDB so that users that need metrics other than the ones stored in API server can be queried and saved to CSV.

* The internal TSDB client has been refactored to return result vectors for instant queries to keep all the labels in the results. Consequently TSDB updater has been refactored to fetch UUID from the result vectors before adding them to unit models

* cacct config has been modified to add new instant and range queries along with their names and help text so that it will be added to the end users' metrics file for better comprehension

* Unnecessary labels will be stripped from TS data for the end users

* Updated e2e tests and new tests to verify the added functionalities

Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
@mahendrapaipuri mahendrapaipuri added enhancement New feature or request breaking Breaking change labels Aug 23, 2026
Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
* Chunk based on available samples in the instant queries of cacct

* Update docs and tests

Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
@mahendrapaipuri
mahendrapaipuri merged commit 4698db8 into main Sep 1, 2026
15 of 16 checks passed
@mahendrapaipuri
mahendrapaipuri deleted the feat/cacct/instant-queries-support branch September 1, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking change enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for configuring instant queries for cacct

1 participant