VictoriaMetrics / metrics

Lightweight alternative to github.com/prometheus/client_golang
MIT License
538 stars 62 forks source link

How to display the histogram with vmrange label in grafana? #44

Open greyireland opened 1 year ago

greyireland commented 1 year ago

Some case,all failed

histogram_quantile(0.9, rate(pair_cache_seconds_bucket[5m]))

prometheus_buckets(sum(rate(pair_cache_seconds_bucket)) by (vmrange))

histogram_quantile(0.99, sum(increase(pair_cache_seconds_bucket[5m])) by (vmrange))
greyireland commented 1 year ago

45 support le label

bubunyo commented 1 year ago

i do this and it works fine for me

histogram_quantile(0.5, sum(increase(query_timings_bucket)) by (vmrange))
hagen1778 commented 1 year ago

@greyireland how exactly mentioned queries fail? Have you read https://valyala.medium.com/improving-histogram-usability-for-prometheus-and-grafana-bc7e5df0e350 ?