Alert Received in Prometheus (alert goes to Firing status)
Labels State Active Since Value
alertname="nginx connections" app="ingress-nginx" controller_revision_hash="xxxxxxxxx" ingress_class="nginx" instance="xxx.xxx.xxx:xxxx" job="kubernetes-pods" kubernetes_namespace="ingress-nginx" kubernetes_pod_name="nginx-ingress-controller-52pkt" pod_template_generation="1" severity="critical" state="writing"
alert: nginx
connections
expr: nginx_connections{job="kubernetes-pods"}
> 0
for: 1m
labels:
severity: critical
annotations:
summary: High NGINX Connections
Prometheus-Alertmanager Config Map
Key: alertmanager.yml
Value:
global:
smtp_smarthost: 'xxxx.xxxx:25'
smtp_from: 'xx...@xxxxx.com’
smtp_require_tls: false
receivers:
- name: test-email
email_configs:
- to: xx...@xxxx.com
route:
group_by: ['severity']
group_interval: 5m
group_wait: 10s
receiver: test-email
repeat_interval: 3h
routes:
- match:
severity: critical
receiver: test-email
Prometheus-server Config Map
key = alerts
Value =
groups:
- name: example
rules:
- alert: nginx connections
expr: nginx_connections{job="kubernetes-pods"} > 0
for: 1m
labels:
severity: critical
annotations:
summary: High NGINX Connections
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/c2885362-c0f1-4bd7-a97d-f22a7ebb3076%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e30d2c9b-da23-4352-8bc5-b01fec7307d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.