VictoriaMetrics/lib/promscrape/discovery
Aliaksandr Valialkin 4304950391
lib/promscrape/discovery/yandexcloud: follow-up for 070abe5c71
- Obtain IAM token via GCE-like API instead of Amazon EC2 IMDSv2 API,
  since it looks like IMDBSv2 API isn't supported by Yandex Cloud
  according to https://yandex.cloud/en/docs/security/standard/authentication#aws-token :

  > So far, Yandex Cloud does not support version 2, so it is strongly recommended
  > to technically disable getting a service account token via the Amazon EC2 metadata service.

- Try obtaining IAM token via GCE-like API at first and then fall back to the deprecated Amazon EC2 IMDBSv1.
  This should prevent from auth errors for instances with disabled GCE-like auth API.
  This addresses @ITD27M01 concern at https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5513#issuecomment-1867794884

- Make more clear the description of the change at docs/CHANGELOG.md , add reference to the related issue.

P.S. This change wasn't tested in prod because I have no access to Yandex Cloud.
It is recommended to test this change by @ITD27M01 and @vmazgo , who filed
the issue https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5513

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/6524
2024-07-16 17:58:40 +02:00
..
azure all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
consul all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
consulagent all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
digitalocean all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
dns all: replace old https://docs.victoriametrics.com/sd_configs.html url with the new one - https://docs.victoriametrics.com/sd_configs/ 2024-04-18 02:27:47 +02:00
docker all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
dockerswarm all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
ec2 all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
eureka all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
gce all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
hetzner all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
http all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
kubernetes all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
kuma all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
nomad all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
openstack all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
vultr all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
yandexcloud lib/promscrape/discovery/yandexcloud: follow-up for 070abe5c71 2024-07-16 17:58:40 +02:00