41 lines
1.1 KiB
Text
41 lines
1.1 KiB
Text
|
|
# {{ 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 %}
|
||
|
|
{% if e.alerts | default([]) %}
|
||
|
|
alerts:
|
||
|
|
{{ e.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') }}
|
||
|
|
conditions:
|
||
|
|
{% for c in e.conditions %}
|
||
|
|
- "{{ c }}"
|
||
|
|
{% endfor %}
|
||
|
|
{% if e.alerts | default([]) %}
|
||
|
|
alerts:
|
||
|
|
{{ e.alerts | to_nice_yaml(indent=2) | indent(6, true) }}
|
||
|
|
{% endif %}
|
||
|
|
{% endfor %}
|
||
|
|
{% endif %}
|