prometheus: add thanos-query
3 files changed, 45 insertions(+), 0 deletions(-) A monitoring/prometheus/deployment-query.yaml M monitoring/prometheus/kustomization.yaml A monitoring/prometheus/service-query.yaml
A monitoring/prometheus/deployment-query.yaml => monitoring/prometheus/deployment-query.yaml +32 -0
@@ 0,0 1,32 @@ apiVersion: apps/v1 kind: Deployment metadata: name: thanos-query spec: replicas: 1 selector: matchLabels: component: query template: metadata: annotations: prometheus.xdavidwu.link/instance: main labels: metrics: metrics component: query spec: containers: - name: query image: quay.io/thanos/thanos:THANOS_VERSION args: - query - --endpoint=prometheus:10901 - --endpoint=thanos-store:10901 - --query.auto-downsampling ports: - name: metrics containerPort: 10902 readinessProbe: httpGet: port: metrics path: /-/ready
M monitoring/prometheus/kustomization.yaml => monitoring/prometheus/kustomization.yaml +2 -0
@@ 15,6 15,8 @@ resources: - service.yaml - deployment-store.yaml - service-store.yaml - deployment-query.yaml - service-query.yaml - configmap.yaml - serviceaccount.yaml - clusterrole.yaml
A monitoring/prometheus/service-query.yaml => monitoring/prometheus/service-query.yaml +11 -0