-
-
Notifications
You must be signed in to change notification settings - Fork 103
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Currently I'm retrieving two metrices:
- Incoming messages
- EventHub size.
The Incoming Messages do work however I'm getting BadRequests for other Metrices e.g. EventHub Size.
Using the following configuration:
metrics:
- name: azure_event_hubs_incoming_messages
description: "The number of incoming messages on an Azure Event Hubs topic"
resourceType: EventHubs
azureMetricConfiguration:
metricName: IncomingMessages
aggregation:
type: Total
resources:
- namespace: xxx-dl-evh-acc
- name: azure_event_hubs_size
description: "Size of an EventHub in Bytes."
resourceType: EventHubs
azureMetricConfiguration:
metricName: Size
aggregation:
type: Average
resources:
- namespace: xxx-dl-evh-acc
metricSinks:
prometheusScrapingEndpoint:
enabled: true
baseUriPath: /metrics
enableMetricTimestamps: true
metricUnavailableValue: NaN
labelTransformation: None
enableServiceDiscovery: true
serviceMonitor:
enabled: true
namespace: "datalake-monitoring"
labels: { }
interval: 30s
timeout: 10s
metricDefaults:
aggregation:
interval: 00:01:00
scraping:
schedule: "* * * * *"
Bad request message:
BadRequest: Failed to serialize response for request: https://westeurope.mdmrp.prod.windows.azure.net/subscriptions/xxxxb/resourceGroups/eventhub-acc-rg/providers/Microsoft.EventHub/namespaces/xxx-dl-evh-acc/providers/microsoft.insights/metrics?$filter=EntityName eq '*'×pan=2022-04-28T07%3A39%3A00.9960246Z%2F2022-05-03T07%3A39%3A00.9960246Z&interval=PT1M&metricnames=Size&aggregation=Average&top=10000&api-version=2018-01-01, Duration: 00:00:00.7031398, TraceId: {4f634207-2197-4058-92c0-ca5932a17b9f}
Error message:
[07:40:02 FTL] Failed to scrape resource for metric 'azure_event_hubs_size'
Microsoft.Azure.Management.Monitor.Fluent.Models.ErrorResponseException: Operation returned an invalid status code 'BadRequest'
at Microsoft.Azure.Management.Monitor.Fluent.MetricsOperations.ListWithHttpMessagesAsync(String resourceUri, ODataQuery`1 odataQuery, String timespan, Nullable`1 interval, String metricnames, String aggregation, Nullable`1 top, String orderby, Nullable`1 resultType, String metricnamespace, Dictionary`2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.Management.Monitor.Fluent.MetricsOperationsExtensions.ListAsync(IMetricsOperations operations, String resourceUri, ODataQuery`1 odataQuery, String timespan, Nullable`1 interval, String metricnames, String aggregation, Nullable`1 top, String orderby, Nullable`1 resultType, String metricnamespace, CancellationToken cancellationToken)
at Microsoft.Azure.Management.Monitor.Fluent.Models.MetricDefinitionImpl.ExecuteAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Management.Monitor.Fluent.Models.MetricDefinitionImpl.Microsoft.Azure.Management.Monitor.Fluent.IWithMetricsQueryExecute.ExecuteAsync(CancellationToken cancellationToken)
at Promitor.Integrations.AzureMonitor.AzureMonitorClient.GetRelevantMetric(String metricName, AggregationType metricAggregation, TimeSpan metricInterval, String metricFilter, String metricDimension, IMetricDefinition metricDefinition, Nullable`1 metricLimit, DateTime recordDateTime) in /src/Promitor.Integrations.AzureMonitor/AzureMonitorClient.cs:line 183
at Promitor.Integrations.AzureMonitor.AzureMonitorClient.QueryMetricAsync(String metricName, String metricDimension, AggregationType aggregationType, TimeSpan aggregationInterval, String resourceId, String metricFilter, Nullable`1 metricLimit) in /src/Promitor.Integrations.AzureMonitor/AzureMonitorClient.cs:line 90
at Promitor.Core.Scraping.AzureMonitorScraper`1.ScrapeResourceAsync(String subscriptionId, ScrapeDefinition`1 scrapeDefinition, TResourceDefinition resourceDefinition, AggregationType aggregationType, TimeSpan aggregationInterval) in /src/Promitor.Core.Scraping/AzureMonitorScraper.cs:line 72
at Promitor.Core.Scraping.Scraper`1.ScrapeAsync(ScrapeDefinition`1 scrapeDefinition) in /src/Promitor.Core.Scraping/Scraper.cs:line 103
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Projects
Status
Ready To Ship