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
vmui: add explore
tab for exploration of metrics, which belong to a particular job/instance
#3386
Comments
See additional enhancements for this feature at #3470 (comment) |
- Document the feature at docs/CHANGELOG.md. - Document the metrics explorer at https://docs.victoriametrics.com/#metrics-explorer . - Properly set `start` and `end` args for the selected time range when performing the request, which returns metric names. - Improve queries, so they return lower number of lines and labels. This should improve metrics' exploration. - Properly encode label filters and query args before passing them to VictoriaMetrics. - Various cosmetic fixes. Updates #3386
- Document the feature at docs/CHANGELOG.md. - Document the metrics explorer at https://docs.victoriametrics.com/#metrics-explorer . - Properly set `start` and `end` args for the selected time range when performing the request, which returns metric names. - Improve queries, so they return lower number of lines and labels. This should improve metrics' exploration. - Properly encode label filters and query args before passing them to VictoriaMetrics. - Various cosmetic fixes. Updates #3386
The |
@Loori-R , I played a bit with the It would be better showing the metrics list in the same way as the list of
The checkbox can be unchecked in the same ways as by checking it. The title of per-metric graph should contain the following information and controls:
The The initial focus should be put at the It would be great also to have the ability to manually change the order of opened graphs. This is useful for placing the related graphs closer to each other. Probably, every title of the graph should contain also the Additionally, it would be great to have an ability to change the vertical size of opened graphs. This should simplify comparison of multiple opened graphs. Probably, to add a drop-down list with the name The graph legend should be hidden at |
… selected Show min, max and avg graphs across instances for the selected job. This should improve usability of such a graphs when the job contains many instances. Updates #3386
… selected Show min, max and avg graphs across instances for the selected job. This should improve usability of such a graphs when the job contains many instances. Updates #3386
…n `instance` is selected in the same way as when only the `job` is selected This improves consistency of the graphs. Updates #3386
…n `instance` is selected in the same way as when only the `job` is selected This improves consistency of the graphs. Updates #3386
i wrote a lib for similar purpose to use in Grafana. maybe it's interesting: https://github.com/leeoniya/uFuzzy |
The |
Is your feature request related to a problem? Please describe.
vmui doesn't provide functionality for exploration of metrics, which belong to a particular
job
(aka a set of scrape targets with identical metrics) orinstance
(aka scrape target).Describe the solution you'd like
It would be great if
vmui
would provide anexplore
tab with the following functionality:Graph
tab for selecting arbitrary time range.job
label values available on the selected time range. This list can be obtained via /api/v1/label/job/values API, which accepts also a time range viastart
andend
query args in the same way as/api/v1/query_range
API does.instance
label values available on the selected time range. This list must be updated with values for the selectedjob
by issuing a query to/api/v1/label/instance/values?match[]={job="selected_job_here"}&start=...&end=...
- see API docs for details.vmui
should load the list of all the metric names for the selectedjob
and print it as a sorted list with one metric name per each line. The list of metric names must be obtained from/api/v1/label/__name__/values?match={job="selected_job_here"}
.+
icon. When user clicks on the icon, then the corresponding graph for this metric on the selected time range must be drawn below the metric name. The following query must be used for the graph depending on whetherjob
/instance
is selected and depending on the metric name:a) if metric name ends with
_total
,_sum
or_count
, then it should be automatically wrapped intorate()
(e.g. we assume that the given metric is a counter ).b) if
job
is selected whileinstance
isn't selected, then the query from stepa)
should be wrapped intosum(...) without (job)
Such a functionality should simplify exploration of metrics collected from Prometheus-compatible scrape targets.
Describe alternatives you've considered
To build a separate dashboard with all the metrics exported by each
job
in Grafana. This isn't a trivial task.The text was updated successfully, but these errors were encountered: