42 lines
848 B
YAML
42 lines
848 B
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: Prometheus
|
|
metadata:
|
|
name: prometheus
|
|
spec:
|
|
serviceAccountName: prometheus
|
|
retention: 1d
|
|
retentionSize: 5GB
|
|
ruleSelector:
|
|
matchLabels:
|
|
monitor: prometheus
|
|
serviceMonitorSelector:
|
|
matchLabels:
|
|
monitor: prometheus
|
|
podMonitorSelector:
|
|
matchLabels:
|
|
monitor: prometheus
|
|
probeSelector:
|
|
matchLabels:
|
|
monitor: prometheus
|
|
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: 500m
|
|
memory: 500Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 500Mi
|