Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Queries to Prometheus? #10

Open
alexcurtin opened this issue Apr 1, 2019 · 1 comment
Open

Multiple Queries to Prometheus? #10

alexcurtin opened this issue Apr 1, 2019 · 1 comment
Labels
question Further information is requested

Comments

@alexcurtin
Copy link

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?

@etiennetremel
Copy link
Contributor

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

@etiennetremel etiennetremel added the question Further information is requested label Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants