prometheus/discovery/kubernetes
Simon Pasquier 7704cde4ea
discovery(k8s): add metadata labels to endpointslices
This commit adds 2 new metadata labels for the endpointslice role:
* `__meta_kubernetes_endpointslice_endpoint_node_name`
* `__meta_kubernetes_endpointslice_endpoint_zone`

The latter is only present when the `discovery.k8s.io/v1` API group is
available.

I also updated the configuration doc and added an entry for the
`__meta_kubernetes_endpointslice_endpoint_hostname` label which was
missing.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-04-17 11:20:19 +02:00
..
endpoints_test.go Pod status changes not discovered by Kube Endpoints SD (#13337) 2024-02-01 12:34:37 +00:00
endpoints.go Pod status changes not discovered by Kube Endpoints SD (#13337) 2024-02-01 12:34:37 +00:00
endpointslice_adaptor_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
endpointslice_adaptor.go discovery(k8s): add metadata labels to endpointslices 2024-04-17 11:20:19 +02:00
endpointslice_test.go discovery(k8s): add metadata labels to endpointslices 2024-04-17 11:20:19 +02:00
endpointslice.go discovery(k8s): add metadata labels to endpointslices 2024-04-17 11:20:19 +02:00
ingress_adaptor.go ci(lint): enable godot; append dot at the end of comments 2023-10-31 19:53:38 +02:00
ingress_test.go Implement target discovery in own k8s namespace 2021-12-14 13:41:38 +01:00
ingress.go Fix linter issues 2023-12-11 14:28:37 +00:00
kubernetes_test.go discovery(k8s): add a metric to track failed requests, failures will still be logged. 2024-02-28 19:55:46 +01:00
kubernetes.go Signed-off-by: hanghuge <cmoman@outlook.com> 2024-04-08 18:44:22 +08:00
metrics.go discovery(k8s): add a metric to track failed requests, failures will still be logged. 2024-02-28 19:55:46 +01:00
node_test.go Kubernetes service discovery: add provider ID label (#9603) 2021-12-06 22:27:11 +01:00
node.go Define metric label values in one place 2023-12-11 13:39:01 +00:00
pod_test.go Add container ID as a meta label for pod targets 2023-01-11 11:44:36 -05:00
pod.go Pod status changes not discovered by Kube Endpoints SD (#13337) 2024-02-01 12:34:37 +00:00
service_test.go add loadbalancerip to service labels 2022-08-10 12:40:11 +02:00
service.go Define metric label values in one place 2023-12-11 13:39:01 +00:00