influxdata / telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
https://influxdata.com/telegraf
MIT License
14.54k stars 5.56k forks source link

Enhance Azure Monitor input plugin to allow collecting dimension specific metrics #15024

Open nikitawasthi20 opened 6 months ago

nikitawasthi20 commented 6 months ago

Use Case

The current Azure monitor telegraf input plugin supports providing resource_id, metrics and aggregation. Azure also provides the option to filter these metrics based on dimensions . An example use case could be where the resource is a database server and Azure provides visibility into database level metrics through dimensions but we are unable to get the database level granularity due to lack of dimension support.

Expected behavior

Once the feature is implemented, we should be able to specify the dimension name (eg being "DatabaseName") and the value of the database name and only get metrics for that particular database through the input plugin.

Actual behavior

Currently thee is no dimension support so we cannot get dimension level metrics.

Additional info

It looks like we are using https://github.com/logzio/azure-monitor-metrics-receiver/blob/master/azure_monitor_metrics_receiver.go for the metric receiver code and we would need to change that to include dimension as well before we are able to call this from the plugin code.

powersj commented 6 months ago

Thanks for the feature request. As you pointed out the upstream library may need some work before we are able to full incorporate this in.

nikitawasthi20 commented 6 months ago

@powersj Thanks for getting back. Do you want me to raise a request with the upstream library?

powersj commented 6 months ago

Please do!

smailslimani commented 5 months ago

Will this feature be available soon?"