AlertManager Prometheus

master
Siroco 2 years ago
commit 6997abaa82
Signed by: siroco
GPG Key ID: 1324098302A514B0
  1. 9
      Dockerfile
  2. 22
      config/alertmanager.yml
  3. 10
      docker-compose.yml

@ -0,0 +1,9 @@
FROM registry.sindominio.net/debian
RUN apt-get update && \
apt-get -qy install --no-install-recommends prometheus-alertmanager ca-certificates &&\
apt-get clean
VOLUME ["/etc/prometheus"]
CMD /usr/bin/prometheus-alertmanager --log.level=debug

@ -0,0 +1,22 @@
global:
resolve_timeout: 5m
smtp_smarthost: localhost:25
smtp_from: "prometheus@sindominio.net"
smtp_require_tls: false
route:
group_by: ['alertname','cluster', 'service']
group_wait: 10s
group_interval: 10s
repeat_interval: 1h
receiver: 'email-1'
inhibit_rules:
- source_match:
severity: 'critical'
target_match:
severity: 'warning'
# Apply inhibition if the alertname is the same.
equal: ['alertname', 'cluster', 'service']
receivers:
- name: email-1
email_configs:
- to: admin@sindominio.net

@ -0,0 +1,10 @@
audiolab-prometheus-alertmanager:
container_name: audiolab-prometheus-alertmanager
image: prom/alertmanager
restart: always
ports:
- "9092:9092"
- "9093:9093"
volumes:
- ./config:/etc/alertmanager
# - ./storage:/alertmanager
Loading…
Cancel
Save