From 1425383a904c4fc09660a1600102e9e6c680dd9a Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Thu, 26 Jul 2018 11:32:07 +0200 Subject: [PATCH] prometheus: add fastd statistics --- group_vars/all/vars.yml | 5 +++++ roles/prometheus/templates/prometheus.yml.j2 | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/group_vars/all/vars.yml b/group_vars/all/vars.yml index d9387c7..4ae9921 100644 --- a/group_vars/all/vars.yml +++ b/group_vars/all/vars.yml @@ -7,6 +7,11 @@ confluence_dbname: confluence confluence_dbuser: confluence confluence_dbpass: "{{ vault_confluence_dbpass }}" +fastd_targets: +- gw11.regensburg.freifunk.net:9281 +- gw21.regensburg.freifunk.net:9281 +- gw31.regensburg.freifunk.net:9281 + gre_prefix: 10.90.232.0/24 gre_matrix: # - { id: 1, a: svcs, b: gw11 } diff --git a/roles/prometheus/templates/prometheus.yml.j2 b/roles/prometheus/templates/prometheus.yml.j2 index bac1557..f02d41d 100644 --- a/roles/prometheus/templates/prometheus.yml.j2 +++ b/roles/prometheus/templates/prometheus.yml.j2 @@ -30,4 +30,10 @@ scrape_configs: - targets: {% for target in node_targets %} - {{ target }} +{% endfor %} + - job_name: fastd + static_configs: + - targets: +{% for target in fastd_targets %} + - {{ target }} {% endfor %}