Skip to content

Instantly share code, notes, and snippets.

@cernoel
Last active December 5, 2024 14:04
Show Gist options
  • Save cernoel/2fd3da4d41971f734ed08c3d7966bd46 to your computer and use it in GitHub Desktop.
Save cernoel/2fd3da4d41971f734ed08c3d7966bd46 to your computer and use it in GitHub Desktop.
Gatus - check a consul service via dns
endpoints:
- name: "consul service check - consul"
group: "consul service dns"
url: "consul.service.dev.consul:8600" # Address of the DNS server to use
dns:
query-name: "consul.service.dev.consul"
query-type: "A"
interval: 30s
conditions:
- "[DNS_RCODE] == NOERROR"
alerts:
- type: discord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment