ansible-debops-infrastructure

DebOps and Ansible scripts to manage my infrastructure
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

commit 6cebeebe2933f131dc515f9f4f6f9139c804b568
parent a5fb2f810a2965e8f9f10a2ef99499c0c7437435
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Wed, 18 Mar 2020 00:41:03 +0200

prometheus: Add config for postgres exporter

Diffstat:
ansible/roles/prometheus/templates/prometheus.yml.j2 | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/ansible/roles/prometheus/templates/prometheus.yml.j2 b/ansible/roles/prometheus/templates/prometheus.yml.j2 @@ -33,6 +33,15 @@ scrape_configs: replacement: 127.0.0.1:9115 {% endif %} +{% if prometheus__postgres_targets is defined %} + - job_name: 'postgres' + static_configs: + - targets: +{% for target in prometheus__postgres_targets %} + - '{{ target }}:9187' +{% endfor %} +{% endif %} + {% if prometheus__synapse_target is defined %} - job_name: 'synapse' metrics_path: '/_synapse/metrics'