VictoriaMetrics/lib/promscrape/discovery/kubernetes
Hui Wang e16d3f5639
fix inconsistent behaviors with prometheus when scraping (#5153)
* fix inconsistent behaviors with prometheus when scraping

1. address https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4959. skip job with wrong syntax in `scrape_configs` with error logs instead of exiting;
2. show error messages on vmagent /targets ui if there are wrong auth configs in `scrape_configs`, previously will print error logs and do scrape without auth header;
3. don't send requests if there are wrong auth configs in:
    1. vmagent remoteWrite;
    2. vmalert datasource/remoteRead/remoteWrite/notifier.

* add changelogs

* address review comments

* fix ut
2023-10-17 17:58:19 +08:00
..
testdata lib/promscrape/discovery/kubernetes: follow-up after 0b5c874911 (#2672) 2022-06-01 20:44:45 +02:00
api.go lib/promauth: refactor NewConfig in order to improve maintainability 2022-07-04 14:31:12 +03:00
api_watcher.go fix inconsistent behaviors with prometheus when scraping (#5153) 2023-10-17 17:58:19 +08:00
api_watcher_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
common_types.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
endpoints.go Add endpoint labels for pod targets discovered form endpoint but has different ports (#4253) 2023-05-05 15:46:07 +04:00
endpoints_test.go lib/promscrape/discovery/kubernetes: follow-up for d5e94721db (#4255) 2023-05-05 14:41:17 +02:00
endpointslice.go Add endpoint labels for pod targets discovered form endpoint but has different ports (#4253) 2023-05-05 15:46:07 +04:00
endpointslice_test.go lib/promscrape/discovery/kubernetes: follow-up for d5e94721db (#4255) 2023-05-05 14:41:17 +02:00
ingress.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:16:42 +02:00
ingress_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
kubeconfig.go lib/promscrape/discovery/kubernetes: use unsupportedFieldError() function instead of errContext string 2022-06-07 01:22:07 +03:00
kubeconfig_test.go lib/promscrape/discovery/kubernetes: follow-up after 006b8c7534 2022-06-06 14:40:52 +03:00
kubernetes.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
node.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:16:42 +02:00
node_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
pod.go lib/promscrape/discovery/kubernetes: follow-up for d5e94721db (#4255) 2023-05-05 14:41:17 +02:00
pod_test.go lib/promscrape/discovery/kubernetes: add support for __meta_kubernetes_pod_container_id 2023-01-27 16:34:06 -08:00
pod_timing_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
service.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:16:42 +02:00
service_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00