prometheus/discovery/vultr
Pierluigi Lenoci 73902efbd0
discovery/vultr: upgrade govultr from v2 to v3 (#18347)
* 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>
2026-03-26 09:42:25 +01:00
..
metrics.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
mock_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
vultr.go discovery/vultr: upgrade govultr from v2 to v3 (#18347) 2026-03-26 09:42:25 +01:00
vultr_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00