# {{ gatus_endpoint_name }}.yaml — managed by Ansible (roles/gatus_endpoint) # # Contributed by a playbook, not hand-edited. Gatus appends the lists in every # *.yaml under its config directory, so this file adds to whatever else is # registered without knowing about it. {% if gatus_endpoint_external %} external-endpoints: {% for e in gatus_endpoint_external %} - name: {{ e.name }} group: {{ e.group }} token: "{{ e.token }}" {% if e.heartbeat is defined %} heartbeat: interval: {{ e.heartbeat }} {% endif %} {% set _alerts = e.alerts | default(gatus_endpoint_default_alerts) %} {% if _alerts %} alerts: {{ _alerts | to_nice_yaml(indent=2) | indent(6, true) }} {% endif %} {% endfor %} {% endif %} {% if gatus_endpoint_pulled %} endpoints: {% for e in gatus_endpoint_pulled %} - name: {{ e.name }} group: {{ e.group }} url: "{{ e.url }}" interval: {{ e.interval | default('60s') }} {% if e.dns is defined %} # A DNS endpoint: `url` is the RESOLVER to ask, not the thing being asked # about. The name being queried lives in query-name, and [BODY] holds the # resolved record for the conditions below. dns: query-type: {{ e.dns['query-type'] }} query-name: {{ e.dns['query-name'] }} {% endif %} {% if e.client is defined %} client: {{ e.client | to_nice_yaml(indent=2) | indent(6, true) }} {% endif %} conditions: {% for c in e.conditions %} - "{{ c }}" {% endfor %} {% set _alerts = e.alerts | default(gatus_endpoint_default_alerts) %} {% if _alerts %} alerts: {{ _alerts | to_nice_yaml(indent=2) | indent(6, true) }} {% endif %} {% endfor %} {% endif %}