You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/scraping/overview.md
+20-19Lines changed: 20 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ file which is referred to as the metric declaration.
6
6
This declaration defines the overall Azure metadata and all the metrics you want to expose.
7
7
8
8
Every metric describes the Azure Monitor metric that it represents and what Azure resources that should be scraped.
9
-
It allows you to statically declaring the resources to scrape and/or use [automatic resource discovery](https://promitor.io/concepts/#using-resource-discovery).
9
+
It allows you to statically declaring the resources to scrape and/or use [automatic resource discovery](https://promitor.io/concepts/#using-resource-discovery).
10
10
11
11
## Supported Azure Services
12
12
@@ -28,6 +28,7 @@ We also provide a simplified way to scrape the following Azure resources:
28
28
-[Azure Data Factory](providers/data-factory.md)
29
29
-[Azure Data Share](providers/data-share.md)
30
30
-[Azure Database for PostgreSQL](providers/postgresql.md)
31
+
-[Azure DNS Zone](providers/dns-zone.md)
31
32
-[Azure Database for MariaDB](providers/maria-db.md)
32
33
-[Azure Database for MySQL](providers/mysql.md)
33
34
-[Azure Event Hubs](providers/event-hubs.md)
@@ -67,25 +68,25 @@ Want to help out? Create an issue and [contribute a new scraper](https://github.
67
68
As Promitor evolves we need to change the structure of our metrics declaration.
68
69
69
70
`version: {version}` - Version of declaration that is used. Allowed
70
-
values are `v1`. *(Required)*
71
+
values are `v1`. _(Required)_
71
72
72
73
### Azure
73
74
74
75
-`azureMetadata.tenantId` - The id of the Azure tenant that will be queried.
75
76
-`azureMetadata.subscriptionId` - The id of the default subscription to query.
76
77
-`azureMetadata.resourceGroupName` - The name of the default resource group to query.
77
78
-`azureMetadata.cloud` - The name of the Azure cloud to use. Options are `Global`

12
+
13
+
You can declare to scrape an Azure DNS Zone via the `DnsZone` resource type.
14
+
15
+
When using declared resources, the following fields need to be provided:
16
+
17
+
-`zoneName` - The name of the DNS zone
18
+
19
+
All supported metrics are documented in the official [Azure Monitor documentation](https://learn.microsoft.com/en-us/azure/azure-monitor/reference/supported-metrics/microsoft-network-dnszones-metrics).
20
+
21
+
## Example
22
+
23
+
Here is an example configuration:
24
+
25
+
```yaml
26
+
name: azure_dns_zone_capacity_utilization
27
+
description: "Percentage of record set capacity utilized by a DNS zone"
28
+
resourceType: DnsZone
29
+
scraping:
30
+
schedule: "0 */2 * ? * *"
31
+
azureMetricConfiguration:
32
+
metricName: RecordSetCapacityUtilization
33
+
aggregation:
34
+
type: Maximum
35
+
interval: 00:01:00
36
+
resources: # Optional, required when no resource discovery is configured
0 commit comments