Merge "Prometheus: Update Alertmanager discovery, fix rules entry"
This commit is contained in:
commit
68ad0da16b
@ -120,8 +120,9 @@ endpoints:
|
|||||||
name: alertmanager
|
name: alertmanager
|
||||||
namespace: null
|
namespace: null
|
||||||
hosts:
|
hosts:
|
||||||
default: alerts-api
|
default: alerts-engine
|
||||||
public: alertmanager
|
public: alertmanager
|
||||||
|
discovery: alertmanager-discovery
|
||||||
host_fqdn_override:
|
host_fqdn_override:
|
||||||
default: null
|
default: null
|
||||||
path:
|
path:
|
||||||
@ -132,6 +133,8 @@ endpoints:
|
|||||||
api:
|
api:
|
||||||
default: 9093
|
default: 9093
|
||||||
public: 80
|
public: 80
|
||||||
|
mesh:
|
||||||
|
default: 6783
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
dynamic:
|
dynamic:
|
||||||
@ -452,20 +455,23 @@ conf:
|
|||||||
alerting:
|
alerting:
|
||||||
alertmanagers:
|
alertmanagers:
|
||||||
- kubernetes_sd_configs:
|
- kubernetes_sd_configs:
|
||||||
- role: pod
|
- role: pod
|
||||||
|
tls_config:
|
||||||
|
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
||||||
|
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels:
|
- source_labels: [__meta_kubernetes_pod_label_application]
|
||||||
- __meta_kubernetes_pod_label_name
|
|
||||||
regex: alertmanager
|
regex: alertmanager
|
||||||
action: keep
|
action: keep
|
||||||
- source_labels:
|
- source_labels: [__meta_kubernetes_pod_container_port_name]
|
||||||
- __meta_kubernetes_namespace
|
regex: alerts-api
|
||||||
|
action: keep
|
||||||
|
- source_labels: [__meta_kubernetes_pod_container_port_name]
|
||||||
|
regex: peer-mesh
|
||||||
|
action: drop
|
||||||
|
- source_labels: [__meta_kubernetes_namespace]
|
||||||
regex: openstack
|
regex: openstack
|
||||||
action: keep
|
action: keep
|
||||||
- source_labels:
|
|
||||||
- __meta_kubernetes_pod_container_port_number
|
|
||||||
regex:
|
|
||||||
action: drop
|
|
||||||
rules:
|
rules:
|
||||||
alertmanager:
|
alertmanager:
|
||||||
groups:
|
groups:
|
||||||
@ -626,7 +632,7 @@ conf:
|
|||||||
- name: kube-controller-manager.rules
|
- name: kube-controller-manager.rules
|
||||||
rules:
|
rules:
|
||||||
- alert: K8SControllerManagerDown
|
- alert: K8SControllerManagerDown
|
||||||
expr: absent(up{job="kube-controller-manager"} == 1)
|
expr: absent(up{job="kube-controller-manager-discovery"} == 1)
|
||||||
for: 5m
|
for: 5m
|
||||||
labels:
|
labels:
|
||||||
severity: critical
|
severity: critical
|
||||||
|
Loading…
Reference in New Issue
Block a user