We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some improvements to the annotationAutodiscovery feature:
pods: enabled: true services: enabled: true
pods: labels: pod: __meta_kubernetes_pod_name namesapace: __meta_kubernetes_namespace node: __meta_kubernetes_pod_node_name region: __meta_kubernets_pod_label_region staticLabels: color: red
__param_<key>__
annotations: metricsScrapeParams: k8s.grafana.com/metrics.param.
Which would set:
rule { action = "labelmap" regex = "__meta_kubernetes_pod_annotation_k8s_grafana_com_metrics_param_(.+)" replacement = "__param_$1" }
labelMatchers: region: us pods: labelMatchers: color: blue
will result in:
discovery.kubernetes "pods" { role = "pod" selectors { role = "pod" label = "region=us,color=blue" } }
This is more efficient that filtering in the discovery.relabel section. It could be, and should be, unique per pods and services.
The text was updated successfully, but these errors were encountered:
petewall
No branches or pull requests
Some improvements to the annotationAutodiscovery feature:
__param_<key>__
parameters:Which would set:
will result in:
This is more efficient that filtering in the discovery.relabel section. It could be, and should be, unique per pods and services.
The text was updated successfully, but these errors were encountered: