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

Helm monitor plugin not working "Error: context deadline exceeded" #22

Open
pret-nitish opened this issue Oct 11, 2023 · 0 comments
Open

Comments

@pret-nitish
Copy link

Hi Team ,

We are facing issue while using helm monitor plugin. Prometheus server is up and running. But when we are using it with helm monitor commands its not working. We have tried with different PROMQL query as well but still same result.

prometheus server :-
curl http://IP:PORT/-/healthy
Prometheus Server is Healthy.

helm monitor prometheus --prometheus=http://IP:PORT my-release 'rate(http_requests_total{code=~"^5.*$"}[5m]) >
0'
Error: context deadline exceeded
Usage:
monitor prometheus [flags] RELEASE PROMQL

Flags:
-h, --help help for prometheus
--prometheus string prometheus address (default "http://localhost:9090")

Global Flags:
--dry-run simulate a rollback if triggered by query result
--expected-result-count int number of results that are expected to be returned by the query (rollback triggered if the number of results exceeds this value)
--force force resource update through delete/recreate if needed
-i, --interval int time in seconds between each query (default 10)
--no-hooks prevent hooks from running during rollback
--rollback-timeout int time in seconds to wait for any individual Kubernetes operation during the rollback (like Jobs for hooks) (default 300)
--timeout int time in seconds to wait before assuming a monitoring action is successfull (default 300)
-v, --verbose enable verbose output
--wait if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking a rollback as successful. It will wait for as long as --rollback-timeout

Error: plugin "monitor" exited with error

We have installed Elasticsearch also and tried with that , getting the same output with Elasticsearch also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant