Open Vishnupriya9943 opened 4 months ago
@Vishnupriya9943 If I'm not mistaken the utility doesn't expect a file as input parameter. Your sample_vm.yml
is designed for a Prometheus instance where you define an external source of metrics.
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#static_config
Also your metrics_path
is probably not what you want. /metrics
context is default prometheus golang metrics which is confirmed by your screenshot with localhost:8080/metrics
Try to get
curl "http://localhost:8080/probe/metrics?subscription=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx&resourceType=Microsoft.Compute/virtualMachines&metric=xxxxxxx"
I am using
Azure metrics exporter
for fetching azure metrics but I am unable to get my virtual machine metrics while running below config file../azure-metrics-exporter sample_vm.yml --log.debug
this is my config file
And i exported my
client_id
,secret_id
,tenant_id
.sample screenshot![azure_metrics_exporter](https://github.com/webdevops/azure-metrics-exporter/assets/101937629/5e48b20f-ad66-49e6-aa70-89422b167c6c)
Kindly help me to resolve this one, Thanks.