VictoriaMetrics/lib/promscrape/discovery/kubernetes
Aliaksandr Valialkin fe084fdd33 lib/promscrape/discovery/kubernetes: synchronously load Kubernetes objects on first access
Remove async registration of apiWatchers, since it breaks discovering `role: endpoints` and `role: endpointslices` targets,
which depend on pod and service objects.

There is no need in reloading `endpoints` and `endpointslices` targets if the referenced `pod` or `service` objects change,
since in this case the corresponding `endpoints` and `endpointslices` objects should also change because they contain
ResourceVersion of the referenced `pod` or `service` objects, which is modified on object update.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1182
2021-04-05 14:37:07 +03:00
..
api_watcher_test.go lib/promscrape/discovery/kubernetes: properly discover targets in multiple namespaces 2021-04-02 14:29:24 +03:00
api_watcher.go lib/promscrape/discovery/kubernetes: synchronously load Kubernetes objects on first access 2021-04-05 14:37:07 +03:00
api.go lib/promscrape: add support for authorization config in -promscrape.config as Prometheus 2.26 does 2021-04-02 21:20:37 +03:00
common_types.go lib/promscrape/discovery/kubernetes: properly track objects with the same names in multiple namespaces 2021-04-02 14:46:34 +03:00
endpoints_test.go lib/promscrape/discovery/kubernetes: use a single watcher per apiURL 2021-03-11 17:04:14 +02:00
endpoints.go lib/promscrape/discovery/kubernetes: properly track objects with the same names in multiple namespaces 2021-04-02 14:46:34 +03:00
endpointslices_test.go lib/promscrape/discovery/kubernetes: use a single watcher per apiURL 2021-03-11 17:04:14 +02:00
endpointslices.go lib/promscrape/discovery/kubernetes: properly track objects with the same names in multiple namespaces 2021-04-02 14:46:34 +03:00
ingress_test.go lib/promscrape/discovery/kubernetes: use a single watcher per apiURL 2021-03-11 17:04:14 +02:00
ingress.go lib/promscrape/discovery/kubernetes: properly track objects with the same names in multiple namespaces 2021-04-02 14:46:34 +03:00
kubernetes.go lib/promscrape: add support for authorization config in -promscrape.config as Prometheus 2.26 does 2021-04-02 21:20:37 +03:00
node_test.go lib/promscrape/discovery/kubernetes: use a single watcher per apiURL 2021-03-11 17:04:14 +02:00
node.go lib/promscrape/discovery/kubernetes: properly track objects with the same names in multiple namespaces 2021-04-02 14:46:34 +03:00
pod_test.go lib/promscrape/discovery/kubernetes: use a single watcher per apiURL 2021-03-11 17:04:14 +02:00
pod.go lib/promscrape/discovery/kubernetes: properly track objects with the same names in multiple namespaces 2021-04-02 14:46:34 +03:00
service_test.go lib/promscrape/discovery/kubernetes: use a single watcher per apiURL 2021-03-11 17:04:14 +02:00
service.go lib/promscrape/discovery/kubernetes: properly track objects with the same names in multiple namespaces 2021-04-02 14:46:34 +03:00