Commit 4122dc15 authored by ale's avatar ale

Merge branch 'prometheus-reload' into 'master'

Reload Prometheus components config via HTTP

Closes #84

See merge request !154
parents d1913c5d d9b3bc69
Pipeline #8305 passed with stage
in 3 minutes and 4 seconds
---
- name: restart prometheus-lts
systemd:
name: docker-prometheus-lts-prometheus.service
state: restarted
- name: reload prometheus-lts
uri:
url: "http://localhost:9099/-/reload"
method: POST
listen: "reload prometheus-lts"
---
- name: restart prometheus
systemd:
name: docker-prometheus-prometheus.service
state: restarted
- name: reload prometheus
uri:
url: "http://localhost:9090/-/reload"
method: POST
listen: "reload prometheus"
- name: restart prometheus-alertmanager
systemd:
name: docker-prometheus-alertmanager.service
state: restarted
- name: reload alertmanager
uri:
url: "http://localhost:9093/-/reload"
method: POST
listen: "reload prometheus"
- name: restart prometheus-blackbox
systemd:
name: docker-prometheus-blackbox.service
state: restarted
- name: reload blackbox
uri:
url: "http://localhost:9115/-/reload"
method: POST
listen: "reload prometheus"
- name: restart grafana-server
......
......@@ -14,7 +14,7 @@ prometheus-lts:
volumes:
- /etc/prometheus-lts: /etc/prometheus-lts
- /var/lib/prometheus-lts/metrics2: /var/lib/prometheus-lts/metrics2
args: "--config.file=/etc/prometheus-lts/prometheus.yml --web.listen-address=0.0.0.0:9099 --storage.tsdb.path=/var/lib/prometheus-lts/metrics2 --storage.tsdb.retention.time={{ prometheus_lts_tsdb_retention | default('395d') }} --web.external-url=https://monitor-lts.{{ domain_public[0] }}"
args: "--config.file=/etc/prometheus-lts/prometheus.yml --web.listen-address=0.0.0.0:9099 --storage.tsdb.path=/var/lib/prometheus-lts/metrics2 --storage.tsdb.retention.time={{ prometheus_lts_tsdb_retention | default('395d') }} --web.external-url=https://monitor-lts.{{ domain_public[0] }} --web.enable-lifecycle"
- name: thanos
image: registry.git.autistici.org/ai3/docker/thanos:master
ports:
......
......@@ -112,7 +112,7 @@ prometheus:
volumes:
- /etc/prometheus: /etc/prometheus
- /var/lib/prometheus/metrics2: /var/lib/prometheus/metrics2
args: "--storage.tsdb.retention.time={{ prometheus_tsdb_retention | default('90d') }} --web.external-url=https://monitor.{{ domain_public[0] }}"
args: "--storage.tsdb.retention.time={{ prometheus_tsdb_retention | default('90d') }} --web.external-url=https://monitor.{{ domain_public[0] }} --web.enable-lifecycle"
- name: alertmanager
image: registry.git.autistici.org/ai3/docker/prometheus-alertmanager:master
ports:
......
......@@ -59,7 +59,7 @@ prometheus:
volumes:
- /etc/prometheus: /etc/prometheus
- /var/lib/prometheus/metrics2: /var/lib/prometheus/metrics2
args: "--storage.tsdb.retention.time={{ prometheus_tsdb_retention | default('90d') }} --web.external-url=https://monitor.{{ domain_public[0] }}"
args: "--storage.tsdb.retention.time={{ prometheus_tsdb_retention | default('90d') }} --web.external-url=https://monitor.{{ domain_public[0] }} --web.enable-lifecycle"
- name: alertmanager
image: registry.git.autistici.org/ai3/docker/prometheus-alertmanager:master
ports:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment