mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-05 12:26:14 +02:00
* discovery/vultr: upgrade govultr from v2 to v3 The govultr/v2 library is no longer actively maintained. Upgrade to govultr/v3 (v3.28.1) which receives regular updates and security patches. The v3 library is API-compatible with v2 for the Instance.List method used by the Vultr SD, with the only change being an additional *http.Response return value. Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com> * discovery/vultr: check HTTP response status code Validate that the Vultr API returns a 2xx status code after listing instances, as the *http.Response from govultr v3 is now available. Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com> * discovery/vultr: fix linter error in error string capitalization Error strings should not be capitalized per Go conventions (ST1005). Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com> --------- Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com>