This commit is contained in:
2026-03-09 18:29:13 +00:00
commit 5ad4f404ad
326 changed files with 178484 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: prometheus
namespace: monitoring
labels:
prometheus: prometheus
spec:
serviceAccountName: prometheus
#resources:
# limits:
# cpu: 200m
# memory: 200Mi
# requests:
# cpu: 100m
# memory: 100Mi
securityContext:
runAsUser: 1001
alerting:
alertmanagers:
- namespace: monitoring
name: alertmanager
port: web
serviceMonitorSelector:
matchLabels:
team: undercloud
ruleSelector:
matchLabels:
role: alert-rules
prometheus: prometheus
ruleNamespaceSelector: {}
# matchLabels:
# team: undercloud
#resources:
# requests:
# memory: 400Mi
serviceMonitorNamespaceSelector:
matchLabels:
prometheus: prometheus
probeNamespaceSelector: {}
probeSelector: {}
---
apiVersion: v1
kind: Service
metadata:
name: prometheus
namespace: monitoring
spec:
ipFamilies:
- IPv6
- IPv4
ipFamilyPolicy: PreferDualStack
ports:
- name: web
port: 9090
protocol: TCP
targetPort: web
selector:
prometheus: prometheus