Skip to content

Instantly share code, notes, and snippets.

@cernoel
Created December 5, 2024 14:03
Show Gist options
  • Save cernoel/bd745540df67a7b6f0567612015e2efa to your computer and use it in GitHub Desktop.
Save cernoel/bd745540df67a7b6f0567612015e2efa to your computer and use it in GitHub Desktop.
gatus - check consul service via consul api if check is passing
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