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 # web.external-url seems to be hardcoded, edited deployment manually
# extraArgs: # extraArgs:
# web.external-url: "https://prometheus.viktorbarzin.me" # web.external-url: "https://prometheus.viktorbarzin.me"
# prometheus-node-exporter:
# enabled: true
server: server:
# Enable me to delete metrics # Enable me to delete metrics
extraFlags: extraFlags:
@ -77,6 +79,7 @@ server:
- "web.enable-lifecycle" - "web.enable-lifecycle"
- "storage.tsdb.allow-overlapping-blocks" - "storage.tsdb.allow-overlapping-blocks"
# - "storage.tsdb.retention.size=1GB" # - "storage.tsdb.retention.size=1GB"
- "storage.tsdb.wal-compression"
persistentVolume: persistentVolume:
# enabled: false # enabled: false
existingClaim: prometheus-iscsi-pvc existingClaim: prometheus-iscsi-pvc
@ -85,6 +88,15 @@ server:
strategy: strategy:
type: Recreate type: Recreate
baseURL: "https://prometheus.viktorbarzin.me" 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: ingress:
enabled: true enabled: true
annotations: annotations:
@ -355,6 +367,8 @@ extraScrapeConfigs: |
static_configs: static_configs:
- targets: - targets:
- "192.168.1.127:9100" - "192.168.1.127:9100"
labels:
node: 'pve-node-r730'
metrics_path: '/metrics' metrics_path: '/metrics'
relabel_configs: relabel_configs:
- source_labels: [__address__] - source_labels: [__address__]

Binary file not shown.