Skip to content
Snippets Groups Projects
Unverified Commit d0c1fb52 authored by Frederic Branczyk's avatar Frederic Branczyk
Browse files

manifests: add Alertmanager manifests and discovery

The latest version of the Prometheus Operator requires Prometheus
>=v1.4.0 for the Alertmanger discovery feature.
parent 0c1bb5c1
Branches
Tags
No related merge requests found
apiVersion: v1
kind: ConfigMap
metadata:
name: alertmanager-main
data:
alertmanager.yaml: |-
global:
resolve_timeout: 5m
route:
group_by: ['job']
group_wait: 30s
group_interval: 5m
repeat_interval: 12h
receiver: 'webhook'
receivers:
- name: 'webhook'
webhook_configs:
- url: 'http://alertmanagerwh:30500/'
apiVersion: v1
kind: Service
metadata:
name: alertmanager-main
spec:
type: NodePort
ports:
- name: web
nodePort: 30903
port: 9093
protocol: TCP
targetPort: web
selector:
alertmanager: alertmanager-main
apiVersion: "monitoring.coreos.com/v1alpha1"
kind: "Alertmanager"
metadata:
name: "alertmanager-main"
labels:
alertmanager: "main"
spec:
replicas: 3
version: v0.5.1
......@@ -6,7 +6,7 @@ metadata:
labels:
prometheus: frontend
spec:
version: v1.3.0
version: v1.4.1
serviceMonitors:
- selector:
matchLabels:
......@@ -18,3 +18,8 @@ spec:
# production use. This value is mainly meant for demonstration/testing
# purposes.
memory: 400Mi
alerting:
alertmanagers:
- namespace: monitoring
name: alertmanager-main
port: web
......@@ -5,7 +5,7 @@ metadata:
labels:
prometheus: k8s
spec:
version: v1.3.0
version: v1.4.1
resources:
requests:
# 2Gi is default, but won't schedule if you don't have a node with >2Gi
......@@ -13,3 +13,8 @@ spec:
# production use. This value is mainly meant for demonstration/testing
# purposes.
memory: 400Mi
alerting:
alertmanagers:
- namespace: monitoring
name: alertmanager-main
port: web
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment