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

52 lines
1.1 KiB
YAML

apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: prometheus
spec:
serviceAccountName: prometheus
retention: 28d
retentionSize: 9GB
ruleSelector:
matchLabels:
monitor: prometheus
serviceMonitorSelector:
matchLabels:
monitor: prometheus
podMonitorSelector:
matchLabels:
monitor: prometheus
probeSelector:
matchLabels:
monitor: prometheus
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
resources:
requests:
cpu: 2000m
memory: 2Gi
limits:
cpu: 3000m
memory: 2Gi
storage:
volumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 10Gi