prometheus/discovery/kubernetes
bas smit a10dc9298e sd k8s: support sidecar containers in endpoint discovery
Sidecar containers are a newish feature in k8s. They're implemented
similar to init containers but actually stay running and allow you to
delay startup of your application pod until the sidecar started (like
init containers always do).

This adds the ports of the sidecar container to the list of discovered
endpoint(slice), allowing you to target those containers as well.
The implementation is a copy of that of Pod discovery

fixes: #14927

Signed-off-by: bas smit <bsmit@bol.com>
2024-10-01 10:26:58 +02:00
..
endpoints.go sd k8s: support sidecar containers in endpoint discovery 2024-10-01 10:26:58 +02:00
endpoints_test.go sd k8s: test for sidecar container support in endpoints 2024-10-01 10:26:58 +02:00
endpointslice.go sd k8s: support sidecar containers in endpoint discovery 2024-10-01 10:26:58 +02:00
endpointslice_adaptor.go discovery(k8s): remove support for API versions no longer served 2024-07-04 14:54:27 +02:00
endpointslice_adaptor_test.go discovery(k8s): remove support for API versions no longer served 2024-07-04 14:54:27 +02:00
endpointslice_test.go sd k8s: test for sidecar container support in endpoints 2024-10-01 10:26:58 +02:00
ingress.go discovery(k8s): remove support for API versions no longer served 2024-07-04 14:54:27 +02:00
ingress_adaptor.go discovery(k8s): remove support for API versions no longer served 2024-07-04 14:54:27 +02:00
ingress_test.go discovery(k8s): remove support for API versions no longer served 2024-07-04 14:54:27 +02:00
kubernetes.go discovery(k8s): remove support for API versions no longer served 2024-07-04 14:54:27 +02:00
kubernetes_test.go Merge branch 'main' into 3.0-main-sync-24-08-21 2024-08-21 09:09:36 +02: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 Kubernetes service discovery: add provider ID label (#9603) 2021-12-06 22:27:11 +01:00
pod.go Pod status changes not discovered by Kube Endpoints SD (#13337) 2024-02-01 12:34:37 +00:00
pod_test.go Add container ID as a meta label for pod targets 2023-01-11 11:44:36 -05:00
service.go Define metric label values in one place 2023-12-11 13:39:01 +00:00
service_test.go add loadbalancerip to service labels 2022-08-10 12:40:11 +02:00