splunk / splunk-add-on-microsoft-azure

Splunk Add-on for Microsoft Azure
Apache License 2.0
11 stars 9 forks source link

Add Support for Dimensions when pulling Metric data #31

Closed YoungDan closed 4 months ago

YoungDan commented 1 year ago

Hi currently there is no support for dimensions when pulling metrics using the Add-on. The Azure Docs state that metrics with dimensions can be pulled by adding a filter parameter to the request. ($filter=HttpStatusGroup eq '*'). However all metric don't have the same dimensions so it will be tricky to add a filter for each metric in a namespace. The docs state that in order to pull the dimension level metric we first need to get all dimensions by namespace and then GET the metric value for a dimension by adding a filter param.

Get Dimension Values For Metric Get Metric Values w Dimension

This will prob be a little tricky as one would first need to pull the metrics definition and their corresponding dimensions (if they exist) and then create a wildcard filter query for each metric and dimension.

I wish there was a better way of doing this.