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

55 lines
1.2 KiB
YAML

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