2021-08-26 16:42:32 +00:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: Prometheus
|
|
|
|
metadata:
|
|
|
|
name: prometheus
|
|
|
|
spec:
|
|
|
|
serviceAccountName: prometheus
|
2022-11-11 16:02:36 +00:00
|
|
|
retention: 28d
|
2023-10-20 03:58:21 +00:00
|
|
|
retentionSize: 45GB
|
2021-12-16 20:46:23 +00:00
|
|
|
ruleSelector:
|
|
|
|
matchLabels:
|
|
|
|
monitor: prometheus
|
2021-08-26 16:42:32 +00:00
|
|
|
serviceMonitorSelector:
|
|
|
|
matchLabels:
|
|
|
|
monitor: prometheus
|
|
|
|
podMonitorSelector:
|
|
|
|
matchLabels:
|
|
|
|
monitor: prometheus
|
2021-09-06 17:24:55 +00:00
|
|
|
probeSelector:
|
|
|
|
matchLabels:
|
|
|
|
monitor: prometheus
|
2024-09-19 04:14:40 +00:00
|
|
|
scrapeConfigSelector:
|
|
|
|
matchLabels:
|
|
|
|
monitor: prometheus
|
|
|
|
# additionalScrapeConfigs:
|
|
|
|
# name: additional-scrape-configs
|
|
|
|
# key: prometheus-additional.yaml
|
2022-05-26 17:14:50 +00:00
|
|
|
# remoteWrite:
|
|
|
|
# - url: changeme
|
|
|
|
# basicAuth:
|
|
|
|
# username:
|
|
|
|
# name: grafana-cloud-credentials
|
|
|
|
# key: username
|
|
|
|
# password:
|
|
|
|
# name: grafana-cloud-credentials
|
|
|
|
# key: password
|
2021-12-27 03:49:51 +00:00
|
|
|
securityContext:
|
|
|
|
runAsGroup: 65534
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 65534
|
|
|
|
fsGroup: 65534
|
2021-08-26 16:42:32 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
2023-03-13 20:20:30 +00:00
|
|
|
cpu: 1000m
|
|
|
|
memory: 1Gi
|
2021-08-26 16:42:32 +00:00
|
|
|
limits:
|
2023-03-01 18:35:08 +00:00
|
|
|
cpu: 2000m
|
2022-11-04 21:28:01 +00:00
|
|
|
memory: 2Gi
|
2022-05-26 17:14:50 +00:00
|
|
|
storage:
|
|
|
|
volumeClaimTemplate:
|
|
|
|
spec:
|
|
|
|
accessModes: ["ReadWriteOnce"]
|
|
|
|
resources:
|
|
|
|
requests:
|
2023-10-20 03:58:21 +00:00
|
|
|
storage: 50Gi
|