-
Notifications
You must be signed in to change notification settings - Fork 2.2k
docs: update service-discovery docs query flags + alerts metrics #8280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: trouaux <[email protected]>
Signed-off-by: trouaux <[email protected]>
Signed-off-by: trouaux <[email protected]>
Signed-off-by: trouaux <[email protected]>
Signed-off-by: trouaux <[email protected]>
Signed-off-by: trouaux <[email protected]>
Signed-off-by: trouaux <[email protected]>
@MichaHoffmann can you have a second look ? |
@GiedriusS can I ask you for a review here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, some comments
'lookups {{job}}' | ||
) | ||
) | ||
.addPanel( | ||
g.panel('Errors', 'Shows ratio of failures compared to the total number of executed DNS lookups.') + | ||
g.qpsErrTotalPanel( | ||
'thanos_query_store_apis_dns_failures_total{%s}' % thanos.query.dashboard.selector, | ||
'thanos_query_store_apis_dns_lookups_total{%s}' % thanos.query.dashboard.selector, | ||
'thanos_query_endpoints_dns_failures_total{%s}' % thanos.query.dashboard.selector, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can be endpoints or endpoint_groups right? Might need to show both in promql
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added alerts and dashboard examples for group dns
@@ -73,27 +80,27 @@ To use DNS SD, just add one of the following prefixes to the domain name in your | |||
* `dns+` - the domain name after this prefix will be looked up as an A/AAAA query. *A port is required for this query type*. An example using this lookup with a static flag: | |||
|
|||
``` | |||
--store=dns+stores.thanos.mycompany.org:9090 | |||
--endpoint.sd-config=endpoints: [{address: "dns+stores.thanos.mycompany.org:9090"}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm maybe this should be quotes.
Also the value doesn't seem like valid YAML to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this works in k8s, but indeed needs quote otherwise
spec:
containers:
- args:
- query
- '--endpoint.sd-config=endpoints: [{address: ''prometheus-operated:10901''}]'
Signed-off-by: trouaux <[email protected]>
Signed-off-by: trouaux <[email protected]>
Signed-off-by: trouaux <[email protected]>
Changes