diff options
author | binary <me@rgoncalves.se> | 2020-11-22 21:11:20 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-11-22 21:11:20 +0100 |
commit | 0d1a97a0d82d347761da6113686398f364ba04aa (patch) | |
tree | c4d20e4ff920f19a226234d99184a145e445b6d4 /roles/prometheus/templates/prometheus.conf.j2 | |
parent | 5930f294421b490a5beff52ce75f52e938e93354 (diff) | |
download | infrastructure-0d1a97a0d82d347761da6113686398f364ba04aa.tar.gz |
Add node exporter per-system.
Diffstat (limited to 'roles/prometheus/templates/prometheus.conf.j2')
-rw-r--r-- | roles/prometheus/templates/prometheus.conf.j2 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/roles/prometheus/templates/prometheus.conf.j2 b/roles/prometheus/templates/prometheus.conf.j2 new file mode 100644 index 0000000..faf3581 --- /dev/null +++ b/roles/prometheus/templates/prometheus.conf.j2 @@ -0,0 +1,28 @@ + +# prometheus configuration ~~ {{ path_prometheusconfig }} +# managed by Ansible + +global: + scrape_interval: 15s + evaluation_interval: 15s + +alerting: + alertmanagers: + - static_configs: + - targets: + # - alertmanager:9093 + +rule_files: + # - "first_rules.yml" + # - "second_rules.yml" + +scrape_configs: + + - job_name: "prometheus" + static_configs: + - targets: ["127.0.0.1:9090"] + + - job_name: "node_exporter" + scrape_interval: 5s + static_configs: + - targets: ["127.0.0.1:9100"] |