prometheus_flask_exporter
prometheus_flask_exporter copied to clipboard
Requests over 100mc
Hello can you tell me grafana formula for your dashboard to check all requests over 100mc?
You can see an example for 250ms
here: https://github.com/rycus86/prometheus_flask_exporter/blob/master/examples/sample-signals/grafana/dashboards/example.json#L616
increase(flask_http_request_duration_seconds_bucket{status="200",le="0.25"}[30s])
/ ignoring (le) increase(flask_http_request_duration_seconds_count{status="200"}[30s])
le
is the bucket here for the histogram (or summary?) so 100ms would be 0.1
. Does this answer your question?
nope. Example with 250 ms shows all requests UNDER 250 ms. I need OVER 100 ms
Have you tried subtracting those from the total count? Something like this:
( increase(flask_http_request_duration_seconds_bucket{status="200",le="+Inf"}[30s]) - increase(flask_http_request_duration_seconds_bucket{status="200",le="0.1"}[30s]) )
/ ignoring (le) increase(flask_http_request_duration_seconds_count{status="200"}[30s])
doesnt work - dont show requests over 100 mc