Skip to content

Commit

Permalink
Fix service discovery query
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkoyun committed Dec 19, 2019
1 parent 252fcaa commit 0a3c8ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/all/manifests/thanos-ruler-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- --data-dir=/var/thanos/ruler
- --label=ruler_replica="$(NAME)"
- --alert.label-drop="ruler_replica"
- --query=dnssrv+_grpc._tcp.thanos-querier.monitoring.svc.cluster.local
- --query=dnssrv+_http._tcp.thanos-querier.monitoring.svc.cluster.local
env:
- name: NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion jsonnet/kube-thanos/kube-thanos-ruler.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
'--data-dir=/var/thanos/ruler',
'--label=ruler_replica="$(NAME)"',
'--alert.label-drop="ruler_replica"',
'--query=dnssrv+_grpc._tcp.%s.%s.svc.cluster.local' % [
'--query=dnssrv+_http._tcp.%s.%s.svc.cluster.local' % [
$.thanos.querier.service.metadata.name,
$.thanos.querier.service.metadata.namespace,
],
Expand Down

0 comments on commit 0a3c8ed

Please sign in to comment.