Compare commits
2 Commits
38535140ed
...
bff6712c3a
Author | SHA1 | Date | |
---|---|---|---|
bff6712c3a | |||
ea058e912e |
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,7 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: monitoring
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- bundle.yaml
|
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.69.1/bundle.yaml
|
||||||
- servicemonitor.yaml
|
- servicemonitor.yaml
|
||||||
|
13
manifests/prometheus/alertmanager/alertmanager.yaml
Normal file
13
manifests/prometheus/alertmanager/alertmanager.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: Alertmanager
|
||||||
|
metadata:
|
||||||
|
name: core
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
alertmanagerConfigSelector:
|
||||||
|
matchLabels:
|
||||||
|
alertmanagerConfig: core
|
||||||
|
alertmanagerConfigMatcherStrategy:
|
||||||
|
type: None
|
||||||
|
logLevel: debug
|
22
manifests/prometheus/alertmanager/config.yaml
Normal file
22
manifests/prometheus/alertmanager/config.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1alpha1
|
||||||
|
kind: AlertmanagerConfig
|
||||||
|
metadata:
|
||||||
|
name: alertmanager-core-config
|
||||||
|
namespace: monitoring
|
||||||
|
labels:
|
||||||
|
alertmanagerConfig: core
|
||||||
|
spec:
|
||||||
|
route:
|
||||||
|
groupBy: ['alertname']
|
||||||
|
groupWait: 30s
|
||||||
|
groupInterval: 5m
|
||||||
|
repeatInterval: 1h
|
||||||
|
receiver: discord
|
||||||
|
continue: true
|
||||||
|
receivers:
|
||||||
|
- name: discord
|
||||||
|
discordConfigs:
|
||||||
|
- apiURL:
|
||||||
|
name: discord-webhook
|
||||||
|
key: url
|
||||||
|
sendResolved: true
|
7
manifests/prometheus/alertmanager/kustomization.yaml
Normal file
7
manifests/prometheus/alertmanager/kustomization.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- alertmanager.yaml
|
||||||
|
- config.yaml
|
||||||
|
- service.yaml
|
13
manifests/prometheus/alertmanager/service.yaml
Normal file
13
manifests/prometheus/alertmanager/service.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: alertmanager-svc
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: web
|
||||||
|
port: 9093
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: web
|
||||||
|
selector:
|
||||||
|
alertmanager: discord
|
@ -1,3 +1,6 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- serviceaccount.yaml
|
- serviceaccount.yaml
|
||||||
- clusterrole.yaml
|
- clusterrole.yaml
|
||||||
@ -6,3 +9,4 @@ resources:
|
|||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
- servicemonitor.yaml
|
- servicemonitor.yaml
|
||||||
- prometheus.yaml
|
- prometheus.yaml
|
||||||
|
- alertmanager
|
||||||
|
@ -7,9 +7,7 @@ spec:
|
|||||||
serviceAccountName: prometheus
|
serviceAccountName: prometheus
|
||||||
serviceMonitorNamespaceSelector: {}
|
serviceMonitorNamespaceSelector: {}
|
||||||
serviceMonitorSelector: {}
|
serviceMonitorSelector: {}
|
||||||
podMonitorSelector:
|
podMonitorSelector: {}
|
||||||
matchLabels:
|
|
||||||
team: core
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 300Mi
|
memory: 300Mi
|
||||||
@ -24,3 +22,10 @@ spec:
|
|||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
fsGroup: 2000
|
fsGroup: 2000
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
|
alerting:
|
||||||
|
alertmanagers:
|
||||||
|
- namespace: monitoring
|
||||||
|
name: alertmanager-svc
|
||||||
|
port: web
|
||||||
|
ruleSelector: {}
|
||||||
|
ruleNamespaceSelector: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user