From fc18931c82a52cf6eee3ccf892bab212bc5b3227 Mon Sep 17 00:00:00 2001 From: Tom Kerkhove Date: Fri, 7 Aug 2020 13:58:22 +0200 Subject: [PATCH] Add Azure Event Hubs metric to local config Signed-off-by: Tom Kerkhove --- .../resource-discovery-declaration.yaml | 2 ++ config/promitor/scraper/metrics.yaml | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/config/promitor/resource-discovery/resource-discovery-declaration.yaml b/config/promitor/resource-discovery/resource-discovery-declaration.yaml index 8a61effa6..d07afa947 100644 --- a/config/promitor/resource-discovery/resource-discovery-declaration.yaml +++ b/config/promitor/resource-discovery/resource-discovery-declaration.yaml @@ -24,6 +24,8 @@ resourceDiscoveryGroups: type: CosmosDb - name: dps type: DeviceProvisioningService +- name: event-hubs-landscape + type: EventHubs - name: iot-gateways type: IoTHub - name: key-vaults diff --git a/config/promitor/scraper/metrics.yaml b/config/promitor/scraper/metrics.yaml index 104f800ee..c58970941 100644 --- a/config/promitor/scraper/metrics.yaml +++ b/config/promitor/scraper/metrics.yaml @@ -109,4 +109,13 @@ metrics: aggregation: type: Average resourceDiscoveryGroups: - - name: network-interfaces \ No newline at end of file + - name: network-interfaces + - name: azure_event_hubs_incoming_messages_discovery + description: "The number of incoming messages on an Azure Event Hub namespace" + resourceType: EventHubs + azureMetricConfiguration: + metricName: IncomingMessages + aggregation: + type: Total + resourceDiscoveryGroups: + - name: event-hubs-landscape \ No newline at end of file