prometheus/discovery/kubernetes
pasquier-s bde64cf5a6 Fix Kubernetes endpoints SD for empty subsets (#3660)
* Fix Kubernetes endpoints SD for empty subsets

When an endpoints object has no associated pods (replica scaled to zero
for instance), the endpoints SD should return a target group with no
targets so that the SD manager propagates this information to the scrape
manager.

Fixes #3659

* Don't send nil target groups from the Kubernetes SD

This is to be consistent with the endpoints SD part.
2018-01-30 15:00:33 +00:00
..
endpoints.go Fix Kubernetes endpoints SD for empty subsets (#3660) 2018-01-30 15:00:33 +00:00
endpoints_test.go Fix Kubernetes endpoints SD for empty subsets (#3660) 2018-01-30 15:00:33 +00:00
ingress.go comments with TargetProvider should read Discoverer instead (#3667) 2018-01-08 23:59:18 +00:00
ingress_test.go Refactor SD configuration to remove config dependency (#3629) 2017-12-29 21:01:34 +01:00
kubernetes.go Use shared types from the common repo (#3674) 2018-01-11 16:10:25 +01:00
node.go Fix Kubernetes endpoints SD for empty subsets (#3660) 2018-01-30 15:00:33 +00:00
node_test.go comments with TargetProvider should read Discoverer instead (#3667) 2018-01-08 23:59:18 +00:00
pod.go Fix Kubernetes endpoints SD for empty subsets (#3660) 2018-01-30 15:00:33 +00:00
pod_test.go Refactor SD configuration to remove config dependency (#3629) 2017-12-29 21:01:34 +01:00
service.go comments with TargetProvider should read Discoverer instead (#3667) 2018-01-08 23:59:18 +00:00
service_test.go Refactor SD configuration to remove config dependency (#3629) 2017-12-29 21:01:34 +01:00