Promitor exports metric with name Size to Prometheus that does not match the one in Azure Monitor
See original GitHub issueReport
I have deployed the promitor scraper in a k8s cluster but metric “Size” of Eventhub resource exported to Prometheus doesn’t match the one i can see in Azure Portal.
Expected Behavior
Same metric in Azure portal as in Prometheus
Actual Behavior
Different metric value
Steps to Reproduce the Problem
- Define configmap
apiVersion: v1
data:
metrics-declaration.yaml: |-
version: v1
azureMetadata:
tenantId: a5bXXXXXXXXXXXXXXXX4bf20
subscriptionId: 8f17XXXXXXXXXXXXXX680e1e0
resourceGroupName: test-northeurope
metricDefaults:
aggregation:
interval: 00:01:00
scraping:
schedule: "* * * * *"
metrics:
- name: azure_eventhubs_size
description: "Size of an EventHub in Bytes."
resourceType: EventHubs
azureMetricConfiguration:
metricName: Size
aggregation:
type: Average
resources:
- namespace: test-eventhub-namespace-hgu
- Check metrics in Grafana with Azure Monitor as datasource (Figure 1) and Prometheus as datasource (Figure 2). Figure 3 metrics in Azure portal
Figure 1
Figure 2
Figure 3

Component
Scraper
Version
2.0.0
Configuration
Configuration:
apiVersion: v1
data:
metrics-declaration.yaml: |-
version: v1
azureMetadata:
tenantId: a5bXXXXXXXXXXXXXXXX4bf20
subscriptionId: 8f17XXXXXXXXXXXXXX680e1e0
resourceGroupName: test-northeurope
metricDefaults:
aggregation:
interval: 00:01:00
scraping:
schedule: "* * * * *"
metrics:
- name: azure_eventhubs_size
description: "Size of an EventHub in Bytes."
resourceType: EventHubs
azureMetricConfiguration:
metricName: Size
aggregation:
type: Average
resources:
- namespace: test-eventhub-namespace-hgu
Logs
No response
Platform
Microsoft Azure
Contact Details
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Null values for metrics if interval is set to 1 minute #1290
I then started to play a bit with the azure metrics api and I think I have ... Promitor exports metric with name...
Read more >Troubleshoot collection of Prometheus metrics in Azure ...
Follow the steps in this article to determine the cause of Prometheus metrics not being collected as expected in Azure Monitor.
Read more >Use Azure Monitor Metrics in Kubernetes with Prometheus ...
The metrics for Service Bus queue size are all collected by Azure Monitor, ... Promitor is an Azure Monitor Scraper for Prometheus.
Read more >Frequently Asked Questions
You can configure the dimension you are interested in via azureMetricConfiguration.dimension.Name , for more information see our 'Metric Configuration' page ...
Read more >Monitor Azure Resources using Promitor | blog-posts
Promitor is a Prometheus Exporter that allows you to monitor your Azure ... a look at the Azure Monitor documentation, you won't find...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks for reporting, can you share the configuration of the graph in Azure Portal please? Does it also use the same aggregation as Promitor (
00:01:00)?Now, seems to work well with both configuration as you can see below:
Metrics in grafana
Metrics in Azure Portal