Configuring Persistent Storage
Add a Storage Class to Prometheus
kubectl -n pf9-monitoring edit prometheus system# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
creationTimestamp: "2021-01-15T18:09:32Z"
generation: 1
managedFields:
- apiVersion: monitoring.coreos.com/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:ownerReferences: {}
f:spec:
.: {}
f:additionalScrapeConfigs:
.: {}
f:key: {}
f:name: {}
f:alerting:
.: {}
f:alertmanagers: {}
f:replicas: {}
f:resources:
.: {}
f:requests:
.: {}
f:cpu: {}
f:memory: {}
f:retention: {}
f:ruleSelector:
.: {}
f:matchLabels:
.: {}
f:prometheus: {}
f:role: {}
f:rules:
.: {}
f:alert: {}
f:scrapeInterval: {}
f:serviceAccountName: {}
f:serviceMonitorSelector:
.: {}
f:matchLabels:
.: {}
f:prometheus: {}
f:role: {}
manager: promplus
operation: Update
time: "2021-01-15T18:09:32Z"
name: system
namespace: pf9-monitoring
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: false
controller: false
kind: Deployment
name: monhelper
uid: cbc48a82-3c1f-4a2b-9b2a-ebbc32ae2e65
resourceVersion: "2733"
selfLink: /apis/monitoring.coreos.com/v1/namespaces/pf9-monitoring/prometheuses/system
uid: c1722922-4973-4973-8e29-ba0269ad9a79
spec:
additionalScrapeConfigs:
key: additional-scrape-config.yaml
name: scrapeconfig
alerting:
alertmanagers:
- name: sys-alertmanager
namespace: pf9-monitoring
port: web
replicas: 1
resources:
requests:
cpu: 500m
memory: 512Mi
retention: 7d
ruleSelector:
matchLabels:
prometheus: system
role: alert-rules
rules:
alert: {}
scrapeInterval: 2m
serviceAccountName: system-prometheus
serviceMonitorSelector:
matchLabels:
prometheus: system
role: service-monitorTroubleshooting
Get Monitoring Pod Status
View Prometheus Container Logs
Incorrect Storage Class Name
Last updated
Was this helpful?
