Compare commits

..

No commits in common. "bff6712c3a9893073c86d3e88f683614377ac448" and "38535140edcdf6bfe5d5d4c0a5e4135ecebc9799" have entirely different histories.

8 changed files with 40532 additions and 72 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,3 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: monitoring
resources:
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.69.1/bundle.yaml
- bundle.yaml
- servicemonitor.yaml

View File

@ -1,13 +0,0 @@
apiVersion: monitoring.coreos.com/v1
kind: Alertmanager
metadata:
name: core
namespace: monitoring
spec:
replicas: 1
alertmanagerConfigSelector:
matchLabels:
alertmanagerConfig: core
alertmanagerConfigMatcherStrategy:
type: None
logLevel: debug

View File

@ -1,22 +0,0 @@
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

View File

@ -1,7 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- alertmanager.yaml
- config.yaml
- service.yaml

View File

@ -1,13 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: alertmanager-svc
namespace: monitoring
spec:
ports:
- name: web
port: 9093
protocol: TCP
targetPort: web
selector:
alertmanager: discord

View File

@ -1,6 +1,3 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- serviceaccount.yaml
- clusterrole.yaml
@ -9,4 +6,3 @@ resources:
- ingress.yaml
- servicemonitor.yaml
- prometheus.yaml
- alertmanager

View File

@ -7,7 +7,9 @@ spec:
serviceAccountName: prometheus
serviceMonitorNamespaceSelector: {}
serviceMonitorSelector: {}
podMonitorSelector: {}
podMonitorSelector:
matchLabels:
team: core
resources:
requests:
memory: 300Mi
@ -22,10 +24,3 @@ spec:
runAsNonRoot: true
fsGroup: 2000
runAsUser: 1000
alerting:
alertmanagers:
- namespace: monitoring
name: alertmanager-svc
port: web
ruleSelector: {}
ruleNamespaceSelector: {}