Skip to content

Commit

Permalink
Support scraping config-reloader sidecar for Thanos Ruler
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Gough <philip.p.gough@gmail.com>
  • Loading branch information
philipgough committed Sep 7, 2021
1 parent cfd8d78 commit 64375d6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
### Added

- [#237](https://github.com/thanos-io/kube-thanos/pull/237) Add new bucket replicate component.
- [#245](https://github.com/thanos-io/kube-thanos/pull/245) Support scraping config reloader sidecar for ruler.

### Fixed

Expand Down
3 changes: 3 additions & 0 deletions examples/all/manifests/thanos-rule-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
- name: http
port: 10902
targetPort: 10902
- name: reloader
port: 9533
targetPort: 9533
selector:
app.kubernetes.io/component: rule-evaluation-engine
app.kubernetes.io/instance: thanos-rule
Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-rule-serviceMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
- namespace
- pod
targetLabel: instance
- port: reloader
selector:
matchLabels:
app.kubernetes.io/component: rule-evaluation-engine
Expand Down
2 changes: 2 additions & 0 deletions examples/all/manifests/thanos-rule-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ spec:
name: grpc
- containerPort: 10902
name: http
- containerPort: 9533
name: reloader
readinessProbe:
failureThreshold: 18
httpGet:
Expand Down
2 changes: 2 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-rule.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ local defaults = {
ports: {
grpc: 10901,
http: 10902,
reloader: 9533,
},
tracing: {},

Expand Down Expand Up @@ -249,6 +250,7 @@ function(params) {
targetLabel: 'instance',
}],
},
{ port: 'reloader' },
],
},
},
Expand Down

0 comments on commit 64375d6

Please sign in to comment.