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