VictoriaMetrics/lib/promscrape/discovery/kubernetes
Roman Khavronenko d5eb6afe26
lib/promscrape/discovery/kubernetes: fixes kubernetes service discovery (#2615)
* lib/promscrape/discovery/kubernetes: properly updates discovered scrape works
previously, added or updated scrapeworks may override previuosly
discovered.
it happens because swosByKey may contain small subset of kubernetes
objects with it's labels.
It happens for objectsUpdated and objectsAdded maps, which include only changed elements

* Properly calculate vm_promscrape_discovery_kubernetes_scrape_works

Co-authored-by: f41gh7 <nik@victoriametrics.com>
Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2022-05-21 01:01:37 +03:00
..
api.go lib/promscrape/discovery/kubernetes: return back support role: endpointslices, since it is used by VictoriaMetrics operator 2021-08-29 12:37:03 +03:00
api_watcher.go lib/promscrape/discovery/kubernetes: fixes kubernetes service discovery (#2615) 2022-05-21 01:01:37 +03:00
api_watcher_test.go lib/promscrape/discovery/kubernetes: rename role: endpointslices to role: endpointslice to be consistent with Prometheus 2021-08-29 11:23:08 +03:00
common_types.go lib/promscrape/discovery/kubernetes: properly track objects with the same names in multiple namespaces 2021-04-02 14:45:32 +03:00
endpoints.go lib/promscrape/discovery/kubernetes: do not drop pod meta-labels even if the corresponding node objects are missing 2022-04-26 15:26:01 +03:00
endpoints_test.go lib/promscrape/discovery/kubernetes: allow attaching node-level labels and annotations to discovered pod targets in the same way as Prometheus 2.35 does 2022-04-22 20:15:41 +03:00
endpointslice.go lib/promscrape/discovery/kubernetes: do not drop pod meta-labels even if the corresponding node objects are missing 2022-04-26 15:26:01 +03:00
endpointslice_test.go lib/promscrape/discovery/kubernetes: add __meta_kubernetes_endpointslice_{label,annotation}* labels to be consistent with other role values for Kubernetes service discovery 2022-02-11 14:54:47 +02:00
ingress.go lib/promscrape/discovery/kubernetes: properly use https scheme for wildcard TLS certificates in ingress target discovery 2021-09-13 13:03:42 +03:00
ingress_test.go lib/promscrape/discovery/kubernetes: properly use https scheme for wildcard TLS certificates in ingress target discovery 2021-09-13 13:03:42 +03:00
kubernetes.go lib/promscrape/discovery/kubernetes: allow attaching node-level labels and annotations to discovered pod targets in the same way as Prometheus 2.35 does 2022-04-22 20:15:41 +03:00
node.go lib/promscrape/discovery/kubernetes: add __meta_kubernetes_node_provider_id label for discovered Kubernetes nodes in the same way as Prometheus does 2022-01-13 23:16:02 +02:00
node_test.go lib/promscrape/discovery/kubernetes: allow attaching node-level labels and annotations to discovered pod targets in the same way as Prometheus 2.35 does 2022-04-22 20:15:41 +03:00
pod.go lib/promscrape/discovery/kubernetes: do not drop pod meta-labels even if the corresponding node objects are missing 2022-04-26 15:26:01 +03:00
pod_test.go lib/promscrape/discovery/kubernetes: allow attaching node-level labels and annotations to discovered pod targets in the same way as Prometheus 2.35 does 2022-04-22 20:15:41 +03:00
service.go lib/promscrape/discovery/kubernetes: properly track objects with the same names in multiple namespaces 2021-04-02 14:45:32 +03:00
service_test.go lib/promscrape/discovery/kubernetes: use a single watcher per apiURL 2021-03-11 16:43:04 +02:00