VictoriaMetrics/lib/promscrape/discovery/azure
Mattias Ängehov 6d019a3c37
Azure Service Discovery - Fix token fetch for Container Apps/App Services (#3832)
* Modify API version when running in Container App

* Handle expires on from token response

Response from IMDS does not always contain expires in value which is
currently used to get the token expiry time. An example resources that
doesn't provide it are Container Apps and App Service.

Signed-off-by: Mattias Ängehov <mattias.angehov@castoredc.com>

* Fix client id parameter for user assigned identity

* Apply suggestions from code review

---------

Signed-off-by: Mattias Ängehov <mattias.angehov@castoredc.com>
Co-authored-by: Aliaksandr Valialkin <valyala@gmail.com>
2023-02-22 19:19:53 -08:00
..
api.go Azure Service Discovery - Fix token fetch for Container Apps/App Services (#3832) 2023-02-22 19:19:53 -08:00
azure.go lib/promscrape/discovery/azure: add __meta_azure_machine_size label in the same way as Prometheus does 2023-01-27 17:07:12 -08:00
azure_test.go lib/promscrape/discovery/azure: add __meta_azure_machine_size label in the same way as Prometheus does 2023-01-27 17:07:12 -08:00
machine.go lib/promscrape/discovery/azure: add __meta_azure_machine_size label in the same way as Prometheus does 2023-01-27 17:07:12 -08:00
machine_test.go lib/promscrape: adds azure service discovery (#2743) 2022-07-13 23:43:18 +03:00
nic.go lib/promscrape/discoveryutils: switch to native http client from fasthttp (#3568) 2023-01-05 19:34:47 -08:00