update thanos

This commit is contained in:
Remy Moll 2024-06-10 00:01:57 +02:00
parent 3c71ac8411
commit 806b42874c
4 changed files with 19 additions and 42 deletions

View File

@ -31,7 +31,7 @@ datasources:
datasources:
- name: Thanos
type: prometheus
url: http://thanos-querier.prometheus.svc:9090
url: http://thanos-querier.prometheus.svc:10902
isDefault: true
- name: Prometheus
type: prometheus

View File

@ -4,7 +4,7 @@ metadata:
name: prometheus
---
apiVersion: rbac.authorization.k8s.io/v1
knd: ClusterRole
kind: ClusterRole
metadata:
name: prometheus
rules:
@ -52,26 +52,17 @@ spec:
requests:
memory: 400Mi
retention: 730d
retentionSize: 50Gi
retentionSize: 3GiB
serviceAccountName: prometheus
enableAdminAPI: false
serviceMonitorNamespaceSelector: {}
serviceMonitorSelector: {}
thanos:
version: v0.33.0
version: v0.34.1
objectStorageConfig:
# loads the config from a secret named thanos-objstore-config in the same namespace
key: thanos.yaml
name: thanos-objstore-config
volumeClaimTemplate:
metadata:
name: prometheus-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
---
apiVersion: v1
kind: Service

View File

@ -52,16 +52,4 @@ spec:
- name: grpc
protocol: TCP
port: 10901
targetPort: grpc
metadata:
labels:
app: thanos-querier
name: thanos-querier
spec:
ports:
- port: 9090
protocol: TCP
targetPort: http
name: http
selector:
app: thanos-querier
targetPort: grpc

View File

@ -1,33 +1,32 @@
apiVersion: apps/v1
kind: StatefulSet
kind: Deployment
metadata:
name: thanos-store-gateway
name: thanos-store
labels:
app: thanos-store-gateway
app: thanos-store
spec:
replicas: 1
selector:
matchLabels:
app: thanos-store-gateway
serviceName: thanos-store-gateway
app: thanos-store
template:
metadata:
labels:
app: thanos-store-gateway
app: thanos-store
thanos-store-api: "true"
spec:
containers:
- name: thanos
image: thanos
args:
- "store"
- "--log.level=debug"
- "--data-dir=/data"
- "--grpc-address=0.0.0.0:10901"
- "--http-address=0.0.0.0:10902"
- "--objstore.config-file=/etc/secret/thanos.yaml"
- "--index-cache-size=500MB"
- "--chunk-pool-size=500MB"
- store
- --log.level=debug
- --data-dir=/data
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:10902
- --objstore.config-file=/etc/secret/thanos.yaml
- --index-cache-size=500MB
- --chunk-pool-size=500MB
ports:
- name: http
containerPort: 10902
@ -61,7 +60,6 @@ metadata:
app.kubernetes.io/name: thanos-store
name: thanos-store
spec:
clusterIP: None
ports:
- name: grpc
port: 10901
@ -70,4 +68,4 @@ spec:
port: 10902
targetPort: 10902
selector:
app: thanos-store-gateway
app: thanos-store