prometheus: tweak retention and update thanos
All checks were successful
/ diff-and-deploy (push) Successful in 2m2s

This commit is contained in:
Finn 2024-11-07 11:53:02 -08:00
parent 33ad79e646
commit 677c1ac165
3 changed files with 24 additions and 32 deletions

View file

@ -9,9 +9,6 @@ resources:
- thanos.yaml - thanos.yaml
- alerts-longhorn.yaml - alerts-longhorn.yaml
- matrix-alertmanager-receiver.yaml - matrix-alertmanager-receiver.yaml
images:
- name: quay.io/thanos/thanos
newTag: v0.36.1
secretGenerator: secretGenerator:
- name: additional-scrape-configs - name: additional-scrape-configs
options: options:

View file

@ -18,7 +18,7 @@ spec:
spec: spec:
containers: containers:
- name: thanos-querier - name: thanos-querier
image: quay.io/thanos/thanos:latest image: quay.io/thanos/thanos:v0.36.1
args: args:
- query - query
- --http-address - --http-address
@ -120,7 +120,7 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: status.hostIP fieldPath: status.hostIP
image: quay.io/thanos/thanos:latest image: quay.io/thanos/thanos:v0.36.1
livenessProbe: livenessProbe:
failureThreshold: 8 failureThreshold: 8
httpGet: httpGet:

View file

@ -1,30 +1,3 @@
- op: add
path: /spec/storage
value:
volumeClaimTemplate:
spec:
resources:
requests:
storage: 40Gi
- op: add
path: /spec/additionalScrapeConfigs
value:
key: scrape-configs.yaml
name: additional-scrape-configs
optional: true
- op: add
path: /spec/secrets
value: [scrape-secrets]
- op: add
path: /spec/externalUrl
value: https://prometheus.k8s.home.finn.io
- op: add
path: /spec/thanos
value:
image: quay.io/thanos/thanos:v0.36.0
objectStorageConfig:
key: thanos.yaml
name: thanos-objstore
- op: add - op: add
path: /spec/storage path: /spec/storage
value: value:
@ -33,3 +6,25 @@
resources: resources:
requests: requests:
storage: 50Gi storage: 50Gi
- op: add
path: /spec/additionalScrapeConfigs
value:
key: scrape-configs.yaml
name: additional-scrape-configs
optional: true
- op: add
path: /spec/externalUrl
value: https://prometheus.k8s.home.finn.io
- op: add
path: /spec/retention
value: 72h
- op: add
path: /spec/secrets
value: [scrape-secrets]
- op: add
path: /spec/thanos
value:
image: quay.io/thanos/thanos:v0.36.1
objectStorageConfig:
key: thanos.yaml
name: thanos-objstore