improve thanos/prometheus retention
This commit is contained in:
parent
7aaeeded89
commit
76d1c51157
@ -4,7 +4,7 @@ metadata:
|
|||||||
name: prometheus
|
name: prometheus
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
knd: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
rules:
|
rules:
|
||||||
@ -51,6 +51,8 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 400Mi
|
memory: 400Mi
|
||||||
|
retention: 730d
|
||||||
|
retentionSize: 50Gi
|
||||||
serviceAccountName: prometheus
|
serviceAccountName: prometheus
|
||||||
enableAdminAPI: false
|
enableAdminAPI: false
|
||||||
serviceMonitorNamespaceSelector: {}
|
serviceMonitorNamespaceSelector: {}
|
||||||
@ -61,7 +63,15 @@ spec:
|
|||||||
# loads the config from a secret named thanos-objstore-config in the same namespace
|
# loads the config from a secret named thanos-objstore-config in the same namespace
|
||||||
key: thanos.yaml
|
key: thanos.yaml
|
||||||
name: thanos-objstore-config
|
name: thanos-objstore-config
|
||||||
|
volumeClaimTemplate:
|
||||||
|
metadata:
|
||||||
|
name: prometheus-data
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 50Gi
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
@ -22,6 +22,7 @@ spec:
|
|||||||
- --log.level=debug
|
- --log.level=debug
|
||||||
- --query.replica-label=replica
|
- --query.replica-label=replica
|
||||||
- --endpoint=dnssrv+_grpc._tcp.thanos-store:10901
|
- --endpoint=dnssrv+_grpc._tcp.thanos-store:10901
|
||||||
|
- --endpoint=dnssrv+_grpc._tcp.prometheus:9090
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 10902
|
containerPort: 10902
|
||||||
@ -38,6 +39,20 @@ spec:
|
|||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: thanos-querier
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: thanos-querier
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
protocol: TCP
|
||||||
|
port: 10902
|
||||||
|
targetPort: http
|
||||||
|
- name: grpc
|
||||||
|
protocol: TCP
|
||||||
|
port: 10901
|
||||||
|
targetPort: grpc
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: thanos-querier
|
app: thanos-querier
|
||||||
|
Loading…
x
Reference in New Issue
Block a user