Created
December 5, 2024 14:03
-
-
Save cernoel/bd745540df67a7b6f0567612015e2efa to your computer and use it in GitHub Desktop.
gatus - check consul service via consul api if check is passing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
endpoints: | |
- name: check consul-service passing | |
ui: | |
hide-hostname: true | |
group: consul-service-api | |
url: "http://consul.service.dev.consul:8500/v1/health/service/consul?filter=Checks.Status%21%3d%22passing%22" | |
method: "GET" | |
interval: 30s | |
conditions: | |
- "[STATUS] == 200" | |
- "[BODY].data == []" | |
alerts: | |
- type: discord |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment