Skip to content

Optimizing API calls from /series to label/values #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Loori-R opened this issue Mar 6, 2024 · 2 comments
Closed

Optimizing API calls from /series to label/values #144

Loori-R opened this issue Mar 6, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Loori-R
Copy link
Contributor

Loori-R commented Mar 6, 2024

Problem:
The efficiency of the Grafana dashboard is deteriorating due to the use of the suboptimal /series API call. A more effective approach would be the use of the label/values call.

Solution:
To improve performance, it is necessary to adjust the logic for determining which API to use. It is important to minimize the use of the /series call in favor of more efficient methods.

Addition:
It may also be beneficial to implement a selector for choosing variable types, similar to what is used in Prometheus. This will allow for more accurate and efficient API interaction.
image

@Loori-R Loori-R added the enhancement New feature or request label Mar 6, 2024
@Loori-R Loori-R self-assigned this Mar 6, 2024
@Loori-R
Copy link
Contributor Author

Loori-R commented Mar 6, 2024

@hagen1778, what do you think about implementing a query type selector, as mentioned in the Addition section?

@Loori-R
Copy link
Contributor Author

Loori-R commented Apr 9, 2024

The enhancement has been included in victoriametrics-datasource v0.8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant