move prometheus wal to tmpfs to reduce wear [ci skip]

This commit is contained in:
Viktor Barzin 2025-12-26 20:10:20 +00:00
parent a7dc4320b3
commit e12c117bdf
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 14 additions and 0 deletions

View file

@ -70,6 +70,8 @@ alertmanager:
# web.external-url seems to be hardcoded, edited deployment manually
# extraArgs:
# web.external-url: "https://prometheus.viktorbarzin.me"
# prometheus-node-exporter:
# enabled: true
server:
# Enable me to delete metrics
extraFlags:
@ -77,6 +79,7 @@ server:
- "web.enable-lifecycle"
- "storage.tsdb.allow-overlapping-blocks"
# - "storage.tsdb.retention.size=1GB"
- "storage.tsdb.wal-compression"
persistentVolume:
# enabled: false
existingClaim: prometheus-iscsi-pvc
@ -85,6 +88,15 @@ server:
strategy:
type: Recreate
baseURL: "https://prometheus.viktorbarzin.me"
extraVolumes:
- name: prometheus-wal-tmpfs
emptyDir:
medium: Memory
sizeLimit: 2Gi
# 2. Mount it over the WAL directory
extraVolumeMounts:
- name: prometheus-wal-tmpfs
mountPath: /data/wal # Standard path for the chart
ingress:
enabled: true
annotations:
@ -355,6 +367,8 @@ extraScrapeConfigs: |
static_configs:
- targets:
- "192.168.1.127:9100"
labels:
node: 'pve-node-r730'
metrics_path: '/metrics'
relabel_configs:
- source_labels: [__address__]

Binary file not shown.