Skip to content

Commit

Permalink
expose /api/v1/labels end point for Thanos query.
Browse files Browse the repository at this point in the history
  • Loading branch information
raptorsun committed Jul 25, 2021
1 parent ec94924 commit f1d13bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion assets/thanos-querier/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ spec:
- --tls-private-key-file=/etc/tls/private/tls.key
- --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
- --logtostderr=true
- --allow-paths=/api/v1/query,/api/v1/query_range
- --allow-paths=/api/v1/query,/api/v1/query_range,/api/v1/labels,/api/v1/label
image: quay.io/brancz/kube-rbac-proxy:v0.9.0
name: kube-rbac-proxy
ports:
Expand All @@ -155,6 +155,7 @@ spec:
- --insecure-listen-address=127.0.0.1:9095
- --upstream=http://127.0.0.1:9090
- --label=namespace
- -enable-label-apis
image: quay.io/prometheuscommunity/prom-label-proxy:v0.3.0
name: prom-label-proxy
resources:
Expand Down
3 changes: 2 additions & 1 deletion jsonnet/thanos-querier.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ function(params)
'--tls-private-key-file=/etc/tls/private/tls.key',
'--tls-cipher-suites=' + cfg.tlsCipherSuites,
'--logtostderr=true',
'--allow-paths=/api/v1/query,/api/v1/query_range',
'--allow-paths=/api/v1/query,/api/v1/query_range,/api/v1/labels,/api/v1/label',
],
terminationMessagePolicy: 'FallbackToLogsOnError',
volumeMounts: [
Expand All @@ -491,6 +491,7 @@ function(params)
'--insecure-listen-address=127.0.0.1:9095',
'--upstream=http://127.0.0.1:9090',
'--label=namespace',
'-enable-label-apis',
],
resources: {
requests: {
Expand Down

0 comments on commit f1d13bc

Please sign in to comment.