RobustPerception / azure_metrics_exporter

Azure metrics exporter for Prometheus
Apache License 2.0
133 stars 69 forks source link

Dimensions support for metrics #85

Open sujithms opened 4 years ago

sujithms commented 4 years ago

Hi,

I am unable to add a dimension for Event hub namespace, say a particular event hub entity for the namespace. Is there a way to achieve this?

gregoryfischer commented 3 years ago

In both Datadog and in the Grafana Azure Datasource, ascertaining DocumentDB(CosmosDB) throttled requests, is done by checking 429 responses using the StatusCode dimension that should be returned by the TotalRequests metric of the Microsoft.DocumentDB/databaseAccounts metric namespace.

Again, this is returned by the Grafana datasource, but no metric dimensions are being returned with the azure_metrics_exporter.

Is this yet to be implemented or is this in the current documentation and I have not understood?

    targets:
      - resource: "/resourceGroups/MyResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/MyDatabase"
        metric_namespace: "Microsoft.DocumentDB/databaseAccounts"
        metrics:
        - name: AvailableStorage
        - name: DataUsage
        - name: DocumentCount
        - name: IndexUsage
        - name: MetadataRequests
        - name: ProvisionedThroughput
        - name: ReplicationLatency
        - name: TotalRequests
jdstone commented 1 year ago

Since it's been over a year without a response from the dev team on PR #93, I thought I'd post this here, which you can use as an alternative.

It's too bad, because I kind of liked the way this exporter from RobustPerception does things.

However, this exporter includes the aforementioned dimension support, and more. https://github.com/webdevops/azure-metrics-exporter