grafana / grafana

The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
https://grafana.com
GNU Affero General Public License v3.0
65.26k stars 12.17k forks source link

Allow to show selected labels in graph tooltip #77265

Closed zorba128 closed 2 days ago

zorba128 commented 1 year ago

I have several metrics which apart from actual value expose some useful data in the labels. Sample could be like

link_state[link_name, link_target] (0/1)

Where link name is name of series I want to show, value shows connected/disconnected. Additionally I have 'link target' which somehow identifies target service instance - like url, ip, or some internal nodeId. This label varies between points due to load balancing.

Showing chart of link state history, for each link I know if it was up or down. And additionally for every point I could know where this given link was really connecting. And I believe it would be most straightforward to include it in the tooltip - it already has series name and value, and it could additionally expose selected labels.

Its somehow similar to #16420, but I believe fits better to underlying data model and hopefully easier to implement.

For me it would play really well with time series/state timeline charts.

In case of time series - tooltip is a two-column table with series name and value. It would be enough to give user possiblity to extend this by pointing at specific labels to be shown as additional columns.

For timeline chart - tooltip shows value of single specific series (and additional state duration information) - here it is even simpler - one could just additionally print names/values of selected labels.

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

github-actions[bot] commented 2 days ago

This issue has been automatically closed because it has not had any further activity in the last 30 days. Thank you for your contributions!