VictoriaMetrics/lib/promauth
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 basic OAuth2 support for remoteWrite and scrape targets (#1316) 2021-05-22 16:20:18 +03:00
config.go fix inconsistent behaviors with prometheus when scraping (#5153) 2023-10-17 17:58:19 +08:00
config_test.go fix inconsistent behaviors with prometheus when scraping (#5153) 2023-10-17 17:58:19 +08:00
util.go app: allow specifying http and https urls in the following command-line flags 2021-12-03 00:10:02 +02:00