Thanos Ruler is one required per ruleset #3983
Unanswered
psandhu79
asked this question in
Questions & Answers
Replies: 1 comment
-
I just added a label to all my prometheusrules and then used the match labels to select them all |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
According to the documentation with the prometheus operator for thanos ruler
apiVersion: monitoring.coreos.com/v1
kind: ThanosRuler
metadata:
name: thanos-ruler-demo
labels:
example: thanos-ruler
namespace: monitoring
spec:
image: quay.io/thanos/thanos
ruleSelector:
matchLabels:
role: my-thanos-rules
queryEndpoints:
- dnssrv+_http._tcp.my-thanos-querier.monitoring.svc.cluster.local
If i have prometheus rules in different files and use different label to "role: my-thanos-rules"
Do I need to create the file above for each different labelset ?
Beta Was this translation helpful? Give feedback.
All reactions