-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Create API endpoint to return a check's script, interval, HTTP, TTL #623
Comments
+1 |
1 similar comment
+1 |
I'll add another +1 to this. The check config is persisted in the agent's data directory, but that's really peeking behind the curtain. |
+1 too. Im writing a Service Discovery Consul wrapper and need to retrieve info about http check interval and it's type, but /v1/agent/checks doesn't report such info... |
+1 - good just for debugging misbehaving checks, like checking that the supplied command line (script) or url (http) is correct. |
I'm not sure if it helps but on my side, I've been just encoding the check definitions as JSON and persisting that in 'notes' such that it can be retrieved later. Not the super best option as it's not "first-class" but it's been doing the job so far. Maybe it fits your needs 😁 |
@cirocosta that sounds like a good temporary workaround, thx |
There seem to be some endpoints capable of doing so (at least using 1.4.2) but the implementations is either incomplete or buggy:
Wouldn't it be more usefull to fix the existing endpoints instead of creating even more?! |
Closing this in favor of #1680, it has the most 👍 's. |
Hey there, This issue has been automatically locked because it is closed and there hasn't been any activity for at least 30 days. If you are still experiencing problems, or still have questions, feel free to open a new one 👍. |
I'd like an API call to return a check's script, interval, HTTP, and TTL. Ideally this would be exposed in the UI as well, but I'll create a separate ticket for it.
My use case:
I'm planning on using consul as a Nagios replacement. When I am debugging an issue, the first thing I want to do is replicate the check by hand and see how the check is failing. This is also useful when adding new checks, sometimes the author of a new check doesn't get the check right the first time around.
I would think this could be returned via v1/agent/checks as it would just add four fields, but Armon thinks this would cause backwards incompatibility. See https://groups.google.com/forum/?hl=en#!topic/consul-tool/QsvHza81HFo for discussion.
The text was updated successfully, but these errors were encountered: