1
0
Fork 0
home-stack-kustomize/kustomize/bases/prometheus/prometheus.yaml

52 lines
1.1 KiB
YAML
Raw Normal View History

2021-08-26 16:42:32 +00:00
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: prometheus
spec:
serviceAccountName: prometheus
retention: 28d
2023-02-17 17:22:50 +00:00
retentionSize: 8GB
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
2022-09-23 23:11:09 +00:00
additionalScrapeConfigs:
name: additional-scrape-configs
key: prometheus-additional.yaml
# remoteWrite:
# - url: changeme
# basicAuth:
# username:
# name: grafana-cloud-credentials
# key: username
# password:
# name: grafana-cloud-credentials
# key: password
securityContext:
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
fsGroup: 65534
2021-08-26 16:42:32 +00:00
resources:
requests:
cpu: 1000m
memory: 1Gi
2021-08-26 16:42:32 +00:00
limits:
2023-03-01 18:35:08 +00:00
cpu: 2000m
memory: 2Gi
storage:
volumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 10Gi