Sebastian Poxhofer
3f9a9d1e62
chore(discoveryManager): expose Discoverer refresh function ( #10531 )
...
Signed-off-by: secustor <sebastian@poxhofer.at>
2 years ago
Matthieu MOREL
f43749e82f
refactor (discovery): move from github.com/pkg/errors to 'errors' and 'fmt' ( #10807 )
...
Signed-off-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
3 years ago
Matthieu MOREL
e2ede285a2
refactor: move from io/ioutil to io and os packages ( #10528 )
...
* refactor: move from io/ioutil to io and os packages
* use fs.DirEntry instead of os.FileInfo after os.ReadDir
Signed-off-by: MOREL Matthieu <matthieu.morel@cnp.fr>
3 years ago
Robert Fratto
44a5e705be
discovery: Expose custom HTTP client options to discoverers ( #10462 )
...
* discovery: expose HTTP client options to discoverers
Signed-off-by: Robert Fratto <robertfratto@gmail.com>
* discovery/http: use HTTP client options for created client
Signed-off-by: Robert Fratto <robertfratto@gmail.com>
* scrape: use a list of HTTP client options instead of just dial context
Signed-off-by: Robert Fratto <robertfratto@gmail.com>
* discovery: rephrase comment
Signed-off-by: Robert Fratto <robertfratto@gmail.com>
3 years ago
David N Perkins
097b359b41
Added a failure counter to the HTTP service discovery ( #10372 )
...
* Added a failure counter to the http service discovery
Signed-off-by: David N Perkins <David.N.Perkins@ibm.com>
3 years ago
Julien Pivotto
9a2e93228e
Switch to grafana/regexp everywhere ( #10268 )
...
Let's have a consistent library for regexp.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
3 years ago
Mateusz Gozdek
b7bdf6fab2
Fix imports formatting
...
According to
2829908806 (r58457095)
.
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
3 years ago
Mateusz Gozdek
1a6c2283a3
Format Go source files using 'gofumpt -w -s -extra'
...
Part of #9557
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
3 years ago
Julien Pivotto
63b3e4e5ec
Enable HTTP2 again ( #9398 )
...
We are re-enabling HTTP 2 again. There has been a few bugfixes upstream
in go, and we have also enabled ReadIdleTimeout.
Fix #7588
Fix #9068
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
3 years ago
Julius Volz
441e6cd7d6
Merge release-2.28 back into main ( #9035 )
...
* Cut v2.28.0-rc.0 (#8954 )
* Cut v2.28.0-rc.0
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Changelog fixup
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Address review comments
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Downgrade some features to enhancements
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Adjust release date to today
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Migrate HTTP SD docs from docs repo (#8972 )
See discussion in https://github.com/prometheus/docs/pull/1975
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Cut Prometheus v2.28.0 (#8973 )
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* HTTP SD: Allow charset in content type (#8981 )
* Added content type regex
Signed-off-by: Levi Harrison <git@leviharrison.dev>
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* fixed disappeared target groups in http_sd #9019
Signed-off-by: servak <fservak@gmail.com>
* Add a testcase for http-sd
Signed-off-by: servak <fservak@gmail.com>
* HTTP SD: Simplify logic of disappeared targetgroups (#9026 )
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* Fix logging after the move to go-kit/log (#9021 )
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* Cut Prometheus v2.28.1 (#9034 )
Signed-off-by: Julius Volz <julius.volz@gmail.com>
Co-authored-by: Levi Harrison <git@leviharrison.dev>
Co-authored-by: Julien Pivotto <roidelapluie@inuits.eu>
Co-authored-by: servak <fservak@gmail.com>
3 years ago
Levi Harrison
78d5a6d083
HTTP SD: Allow charset in content type ( #8981 )
...
* Added content type regex
Signed-off-by: Levi Harrison <git@leviharrison.dev>
3 years ago
Julien Pivotto
1deac8f570
HTTP SD: Add tests
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
3 years ago
Julius Volz
8d98750e8f
Simplify float formatting for HTTP SD refresh interval ( #8961 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
3 years ago
Levi Harrison
bf1ef2e0f4
Changed log package
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
4 years ago
Julien Pivotto
9444698ae2
http_sd ( #8839 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago