feat(prometheus): use persistent volume

This commit is contained in:
Nold 2023-02-28 14:54:50 +01:00 committed by GitHub
parent e419caa8b5
commit 6e671a5f3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1472,7 +1472,7 @@ prometheus:
## How long to retain metrics
##
retention: 10d
retention: 90d
## Maximum size of metrics
##
@ -1572,16 +1572,16 @@ prometheus:
## Prometheus StorageSpec for persistent data
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/storage.md
##
storageSpec: {}
storageSpec:
## Using PersistentVolumeClaim
##
# volumeClaimTemplate:
# spec:
# storageClassName: gluster
# accessModes: ["ReadWriteOnce"]
# resources:
# requests:
# storage: 50Gi
volumeClaimTemplate:
spec:
storageClassName: ssd
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 50Gi
# selector: {}
## Using tmpfs volume
@ -1608,10 +1608,10 @@ prometheus:
##
additionalScrapeConfigs:
# This scrapes all services/pods with prometheus.io/scrape annotation:
- job_name: 'smartctl'
scrape_interval: 60s
static_configs:
- targets: ['127.0.0.1:9902']
#- job_name: 'smartctl'
# scrape_interval: 60s
# static_configs:
# - targets: ['127.0.0.1:9902']
- job_name: 'openwrt'
scrape_interval: 30s
static_configs: