ContainerSolutions/helm-monitor

Multiple Queries to Prometheus?

alexcurtin opened this issue · 1 comments

Does helm-monitor currently support multiple queries? Meaning, instead of just checking for example http 500, can we also check for latency going up etc? Would that be done just by executing another helm-monitor command?

It should be possible if you use the or operator:
https://prometheus.io/docs/prometheus/latest/querying/operators/#logical-set-binary-operators

request_duration_seconds_sum{version="2.0.0"}
/ request_duration_seconds_count{version="2.0.0"} > 0.001
or rate(http_requests_total{code=~"^5.*$",version="2.0.0"}[5m]) > 0