admin管理员组

文章数量:1287524

I have an histogram metric which records time taken to execute a program. How do I display it in grafana that shows value recorded in specific time interval.

Scenario: At t:0 to t5 the value recorded is 6 At t:5 to t10 the value recorded is 8 At t:10 to t15 the value recorded is 7

If I'm looking from t:0 to t:15 the value should be 21 [6+8+7]. If I'm looking from t:6 to t:9 the value should be 8 If I'm looking from t:5 to t:15 the value should be 14

Tried so far: [$__range] doesn't work for me increase(metric_name[$__range]) shows random value and it doesn't match second scenario

本文标签: prometheusGrafana display metrics between chosen time rangeStack Overflow