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.go Pod status changes not discovered by Kube Endpoints SD (#13337) 2024-02-01 12:34:37 +00:00
endpoints_test.go Pod status changes not discovered by Kube Endpoints SD (#13337) 2024-02-01 12:34:37 +00:00
endpointslice.go discovery(k8s): add metadata labels to endpointslices 2024-04-17 11:20:19 +02:00
endpointslice_adaptor.go discovery(k8s): add metadata labels to endpointslices 2024-04-17 11:20:19 +02:00
endpointslice_adaptor_test.go
endpointslice_test.go discovery(k8s): add metadata labels to endpointslices 2024-04-17 11:20:19 +02:00
ingress.go Fix linter issues 2023-12-11 14:28:37 +00:00
ingress_adaptor.go
ingress_test.go
kubernetes.go Signed-off-by: hanghuge <cmoman@outlook.com> 2024-04-08 18:44:22 +08: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
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.go Define metric label values in one place 2023-12-11 13:39:01 +00:00
node_test.go
pod.go Pod status changes not discovered by Kube Endpoints SD (#13337) 2024-02-01 12:34:37 +00:00
pod_test.go
service.go Define metric label values in one place 2023-12-11 13:39:01 +00:00
service_test.go