|
|
|
@ -49,7 +49,7 @@ scrape_configs:
|
|
|
|
metrics_path: '/metrics'
|
|
|
|
metrics_path: '/metrics'
|
|
|
|
static_configs:
|
|
|
|
static_configs:
|
|
|
|
- targets: [
|
|
|
|
- targets: [
|
|
|
|
{% for host in server_group_all | difference(['dev-awx-02']) | default([]) %}
|
|
|
|
{% for host in server_group_all | difference(['dev-awx-01','dev-prometheus-01','dev-maria-01']) | default([]) %}
|
|
|
|
'{{ host }}.{{ domain }}:{{ monitor_port_service }}',
|
|
|
|
'{{ host }}.{{ domain }}:{{ monitor_port_service }}',
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
@ -129,6 +129,30 @@ scrape_configs:
|
|
|
|
target_label: instance
|
|
|
|
target_label: instance
|
|
|
|
replacement: $1
|
|
|
|
replacement: $1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##############################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- job_name: 'awx'
|
|
|
|
|
|
|
|
scheme: http
|
|
|
|
|
|
|
|
metrics_path: '/api/v2/metrics/'
|
|
|
|
|
|
|
|
basic_auth:
|
|
|
|
|
|
|
|
username: {{ awx_admin_username }}
|
|
|
|
|
|
|
|
password: {{ awx_admin_password }}
|
|
|
|
|
|
|
|
static_configs:
|
|
|
|
|
|
|
|
- targets: [
|
|
|
|
|
|
|
|
{% for host in server_group_awx | default([]) %}
|
|
|
|
|
|
|
|
'{{ host }}.{{ domain }}',
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
labels:
|
|
|
|
|
|
|
|
env: {{ stage }}
|
|
|
|
|
|
|
|
project: smardigo
|
|
|
|
|
|
|
|
application: awx
|
|
|
|
|
|
|
|
relabel_configs:
|
|
|
|
|
|
|
|
- source_labels: [__address__]
|
|
|
|
|
|
|
|
regex: (.*):.*
|
|
|
|
|
|
|
|
target_label: instance
|
|
|
|
|
|
|
|
replacement: $1
|
|
|
|
|
|
|
|
|
|
|
|
##############################################
|
|
|
|
##############################################
|
|
|
|
|
|
|
|
|
|
|
|
- job_name: 'connect'
|
|
|
|
- job_name: 'connect'
|
|
|
|
@ -197,7 +221,7 @@ scrape_configs:
|
|
|
|
metrics_path: '/metrics'
|
|
|
|
metrics_path: '/metrics'
|
|
|
|
static_configs:
|
|
|
|
static_configs:
|
|
|
|
- targets: [
|
|
|
|
- targets: [
|
|
|
|
{% for host in server_group_all | difference(['dev-awx-02']) | default([]) %}
|
|
|
|
{% for host in server_group_all | default([]) %}
|
|
|
|
'{{ host }}.{{ domain }}:{{ monitor_port_system }}',
|
|
|
|
'{{ host }}.{{ domain }}:{{ monitor_port_system }}',
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|