AS
Size: a a a
AS
PK
Wo
{% for group in item.groups | default([]) | sort %}
{% for host in groups[group] | default([]) | sort %}
{% if hostvars[host].ansible_host is defined %}
- targets:
- {{
(hostvars[host].monitoring_ip|d(hostvars[host].ansible_host) +
":" + (item.port | string)) | to_nice_json(indent=2)
}}
labels:
env: {{ env }}
cont_type: {{ item.type | default("node") }}
instance: {{ hostvars[host].inventory_hostname | regex_replace('^(.+)-(.+)-(.+-.+)', '\\1-\\2') + ":" + (item.port | string) }}
hostname: {{ hostvars[host].inventory_hostname | regex_replace('^(.+)-(.+)-(.+-.+)', '\\1-\\2.\\3')}}.{{ dc_domain }}
{% endif %}
{% endfor %}
{% endfor %}
PK
PK
AS
Wo
AS
AS
Wo
PK
G
Signed-off-by: Jesse Szwedko [jesse@szwedko.me](mailto:jesse@szwedko.me)
PK
Wo
IE
Wo
[K
PK
m_dev_up{ip="1.1.1.1"}
m_line_rx{line="1", ip="1.1.1.1"}
m_dev_up{ip="1.1.1.2"}
m_line_rx{line="1",ip="1.1.1.2"}
m_line_rx{line="2",ip="1.1.1.2"}
m_line_rx{line="3",ip="1.1.1.2"}
Wo
PK
1.1.1.1
писал x4r8