You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(1) I want to specify the Azure subscription as an environment variable that is passed automatically to azure-metrics-exporter instead of specifying it manually in the Prometheus scrape config;
(2) I want to specify the resource group as an environment variable that is password automatically to azure-metrics-monitor so the results are always filtered to the given resource group name;
I tried passing the subscription ID from a Kubernetes secret already, but it seems I still need to specify the subscription ID in the Prometheus scape config?
HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
Date: Mon, 26 Feb 2024 17:37:01 GMT
Content-Length: 36
parameter "subscription" is missing
And there doesn't seem to be any method of specifying the resource group as an environment variable at all in the docs?
The reason is that I am currently using an identical Prometheus scraping configuration across more than 100 clusters, and I don't want to manually specify the subscription ID or resource group individually within each cluster.
And I need to filter by resource group to prevent azure-metrics-exporter from returning metrics for a resource group that I don't want reporting into Grafana.
These are the startup logs:
Thanks :)
The text was updated successfully, but these errors were encountered:
params:
name: ["my-name"]
subscription:
- <subscriptionId>
filter: ["(resourceGroup eq '<rg_name>' or resourceGroup eq '<rg_name>') and resourceType eq '<res_type>'"]
I'm just trying to figure out how to do the same for resource name. There are resources in Azure that have different metrics depending on the implementation, e.g. Cognitive Services, and the metrics available are different, so trying to filter by name.
I have two related issues:
(1) I want to specify the Azure subscription as an environment variable that is passed automatically to
azure-metrics-exporter
instead of specifying it manually in the Prometheus scrape config;(2) I want to specify the resource group as an environment variable that is password automatically to
azure-metrics-monitor
so the results are always filtered to the given resource group name;I tried passing the subscription ID from a Kubernetes secret already, but it seems I still need to specify the subscription ID in the Prometheus scape config?
And there doesn't seem to be any method of specifying the resource group as an environment variable at all in the docs?
The reason is that I am currently using an identical Prometheus scraping configuration across more than 100 clusters, and I don't want to manually specify the subscription ID or resource group individually within each cluster.
And I need to filter by resource group to prevent
azure-metrics-exporter
from returning metrics for a resource group that I don't want reporting into Grafana.These are the startup logs:
Thanks :)
The text was updated successfully, but these errors were encountered: