VictoriaMetrics/lib/promscrape
Zhu Jiekun 8848614315
lib/discovery/azure: fix host check in next link in Azure SD (#6915)
Previous bugfix at 49f63b2 only partially fixed pagination host validation error.

 Before this fix it was:
```
unexpected nextLink host \"management.azure.com\", expecting \"https://management.azure.com\"
```

Now we only check the `Host` without schema. 

However, when Azure respond `nextLink` in `Host:Port` format, the
`nextLink` check will fail:
```
unexpected nextLink host \"management.azure.com:443\", expecting \"management.azure.com\"
```

This pull request further relaxes the checks by only checking the
`Hostname`.

---

 related issue: https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6912
2024-09-05 16:58:10 +02:00
..
discovery lib/discovery/azure: fix host check in next link in Azure SD (#6915) 2024-09-05 16:58:10 +02:00
discoveryutils lib: consistently use regexp.Regexp.ReplaceAllLiteralString instead of regexp.Regexp.ReplaceAllString in places where the replacement cannot contain matching group placeholders 2024-07-17 12:57:43 +02:00
testdata
client_test.go attempt to fix flaky TestClientProxyReadOk (#6899) 2024-09-03 10:49:16 +02:00
client.go lib/promscrape: fixes proxy autorization (#6783) 2024-08-19 22:50:39 +02:00
config_test.go lib/promrelabel: follow-up for 8958cecad6 2024-08-27 15:44:07 +02:00
config_timing_test.go
config.go app/vmagent: read __sample_limit__ from labels (#6665) (#6666) 2024-08-07 09:57:48 +02:00
relabel_debug.go
scraper.go feature: [vmagent] Add service discovery support for Vultr (#6068) 2024-05-10 14:28:51 +02:00
scrapework_test.go lib/promscrape: use prompbmarshal.MustParsePromMetrics function at parseData() test function 2024-07-03 16:10:37 +02:00
scrapework_timing_test.go
scrapework.go lib/promscrape: follow-up for 1e83598be3 2024-07-16 12:38:41 +02:00
targetstatus.go all: consistently use stringsutil.JSONString() for formatting JSON strings with fmt.* functions instead of using "%q" formatter 2024-07-17 14:01:37 +02:00
targetstatus.qtpl lib/promscrape: follow-up for 1e83598be3 2024-07-16 12:38:41 +02:00
targetstatus.qtpl.go lib/promscrape: follow-up for 1e83598be3 2024-07-16 12:38:41 +02:00