
https://opendev.org/openstack/devstack-plugin-prometheus is the new devstack plugin providing functionality to install/configure prometheus/node_exporter. It will replace sg_core devstack plugin in future. Depends-On: https://review.opendev.org/c/openstack/watcher/+/938893 Depends-On: https://review.opendev.org/c/openstack/devstack-plugin-prometheus/+/940426 Change-Id: Ia75e6597275b36c04cde653c16f7d45ed23bc261 Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
14 lines
348 B
Django/Jinja
14 lines
348 B
Django/Jinja
global:
|
|
scrape_interval: 10s
|
|
scrape_configs:
|
|
- job_name: "node"
|
|
static_configs:
|
|
- targets: ["localhost:3000"]
|
|
{% if 'compute' in groups %}
|
|
{% for host in groups['compute'] %}
|
|
- targets: ["{{ hostvars[host]['ansible_fqdn'] }}:9100"]
|
|
labels:
|
|
fqdn: "{{ hostvars[host]['ansible_fqdn'] }}"
|
|
{% endfor %}
|
|
{% endif %}
|