-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Provide scrapers for Azure CDN, Cache for Redis Enterprise, Dat…
…abase for MariaDB, Load Balancer & Virtual Network (#1883) * Provide configuration Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Add serialization tests Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Add resource discovery Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Add validation Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Provide scrapers Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Fix local setup & bug in VNET Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Provide changelog entries Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Provide documentation Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Add missing description and leave out Atlassian for local testing Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Provide note on CDN metrics Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>
- Loading branch information
1 parent
a5b19ac
commit 9ee0930
Showing
60 changed files
with
2,280 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
layout: default | ||
title: Azure Content Delivery Network (CDN) Declaration | ||
--- | ||
|
||
## Azure Content Delivery Network (CDN) | ||
|
||
![Availability Badge](https://img.shields.io/badge/Available%20Starting-v2.6-green.svg)![Resource Discovery Support Badge](https://img.shields.io/badge/Support%20for%20Resource%20Discovery-Yes-green.svg) | ||
|
||
You can declare to scrape an Azure CDN via the `Cdn` resource | ||
type. | ||
|
||
When using declared resources, the following fields need to be provided: | ||
|
||
- `cdnName` - The name of the Azure CDN resource | ||
|
||
All supported metrics are documented in the official [Azure Monitor documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/metrics-supported#microsoftcdnprofiles). | ||
|
||
> 🚨 The availability of metrics depends on the SKU of the Azure CDN resource. | ||
Example: | ||
|
||
```yaml | ||
name: azure_cdn_requests | ||
description: "Amount of requests sent to Azure CDN" | ||
resourceType: Cdn | ||
azureMetricConfiguration: | ||
metricName: RequestCount | ||
aggregation: | ||
type: Total | ||
resources: # Optional, required when no resource discovery is configured | ||
- cdnName: promitor-cdn-1 | ||
- cdnName: promitor-cdn-2 | ||
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://promitor.io/concepts/how-it-works#using-resource-discovery) | ||
- name: cdn-landscape | ||
``` | ||
<!-- markdownlint-disable MD033 --> | ||
[← back to metrics declarations](/configuration/v2.x/metrics)<br /> | ||
[← back to introduction](/) | ||
<!-- markdownlint-enable --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
layout: default | ||
title: Azure Load Balancer Declaration | ||
--- | ||
|
||
## Azure Load Balancer | ||
|
||
![Availability Badge](https://img.shields.io/badge/Available%20Starting-v2.6-green.svg)![Resource Discovery Support Badge](https://img.shields.io/badge/Support%20for%20Resource%20Discovery-Yes-green.svg) | ||
|
||
You can declare to scrape an Azure Load Balancer via the `LoadBalancer` resource | ||
type. | ||
|
||
When using declared resources, the following fields need to be provided: | ||
|
||
- `loadBalancerName` - The name of the Azure Load Balancer resource | ||
|
||
All supported metrics are documented in the official [Azure Monitor documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/metrics-supported#microsoftnetworkloadbalancers). | ||
|
||
Example: | ||
|
||
```yaml | ||
name: azure_load_balancer_traffic_bytes | ||
description: "Average amount of bytes sent through an Azure Load Balancer" | ||
resourceType: LoadBalancer | ||
azureMetricConfiguration: | ||
metricName: ByteCount | ||
aggregation: | ||
type: Average | ||
resources: # Optional, required when no resource discovery is configured | ||
- loadBalancerName: promitor-load-balancer-1 | ||
- loadBalancerName: promitor-load-balancer-2 | ||
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://promitor.io/concepts/how-it-works#using-resource-discovery) | ||
- name: load-balancer-landscape | ||
``` | ||
<!-- markdownlint-disable MD033 --> | ||
[← back to metrics declarations](/configuration/v2.x/metrics)<br /> | ||
[← back to introduction](/) | ||
<!-- markdownlint-enable --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
layout: default | ||
title: Azure Database for MariaDB Declaration | ||
--- | ||
|
||
## Azure Database for MariaDB | ||
|
||
![Availability Badge](https://img.shields.io/badge/Available%20Starting-v2.6-green.svg)![Resource Discovery Support Badge](https://img.shields.io/badge/Support%20for%20Resource%20Discovery-Yes-green.svg) | ||
|
||
You can declare to scrape an Azure Database for MariaDB via the `MariaDb` resource | ||
type. | ||
|
||
When using declared resources, the following fields need to be provided: | ||
|
||
- `serverName` - The name of the Azure Database for MariaDB server | ||
|
||
All supported metrics are documented in the official [Azure Monitor documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/metrics-supported#microsoftdbformariadbservers). | ||
|
||
Example: | ||
|
||
```yaml | ||
name: azure_db_mariadb_percentage_cpu | ||
description: "Average percentage cpu usage on an Azure Database for MariaDB" | ||
resourceType: MariaDb | ||
azureMetricConfiguration: | ||
metricName: cpu_percent | ||
aggregation: | ||
type: Average | ||
resources: # Optional, required when no resource discovery is configured | ||
- serverName: promitor-maria-db-1 | ||
- serverName: promitor-maria-db-2 | ||
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://promitor.io/concepts/how-it-works#using-resource-discovery) | ||
- name: maria-db-landscape | ||
``` | ||
<!-- markdownlint-disable MD033 --> | ||
[← back to metrics declarations](/configuration/v2.x/metrics)<br /> | ||
[← back to introduction](/) | ||
<!-- markdownlint-enable --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
layout: default | ||
title: Azure Cache for Redis Enterprise Declaration | ||
--- | ||
|
||
## Azure Cache for Redis Enterprise | ||
|
||
![Availability Badge](https://img.shields.io/badge/Available%20Starting-v2.6-green.svg)![Resource Discovery Support Badge](https://img.shields.io/badge/Support%20for%20Resource%20Discovery-Yes-green.svg) | ||
|
||
You can declare to scrape an Azure Cache for Redis Enterprise via the `RedisEnterpriseCache` resource | ||
type. | ||
|
||
When using declared resources, the following fields need to be provided: | ||
|
||
- `cacheName` - The name of the Azure Cache for Redis Enterprise resource | ||
|
||
All supported metrics are documented in the official [Azure Monitor documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/metrics-supported#microsoftcacheredisenterprise). | ||
|
||
Example: | ||
|
||
```yaml | ||
name: azure_cache_redis_enterprise_percentage_cpu | ||
description: "Average percentage cpu usage on an Azure Cache for Redis Enterprise" | ||
resourceType: RedisEnterpriseCache | ||
azureMetricConfiguration: | ||
metricName: usedmemorypercentage | ||
aggregation: | ||
type: Average | ||
resources: # Optional, required when no resource discovery is configured | ||
- cacheName: promitor-redis-enterprise-cache-1 | ||
- cacheName: promitor-redis-enterprise-cache-2 | ||
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://promitor.io/concepts/how-it-works#using-resource-discovery) | ||
- name: redis-enterprise-cache-landscape | ||
``` | ||
<!-- markdownlint-disable MD033 --> | ||
[← back to metrics declarations](/configuration/v2.x/metrics)<br /> | ||
[← back to introduction](/) | ||
<!-- markdownlint-enable --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
layout: default | ||
title: Azure Virtual Network Declaration | ||
--- | ||
|
||
## Azure Virtual Network | ||
|
||
![Availability Badge](https://img.shields.io/badge/Available%20Starting-v2.6-green.svg)![Resource Discovery Support Badge](https://img.shields.io/badge/Support%20for%20Resource%20Discovery-Yes-green.svg) | ||
|
||
You can declare to scrape an Azure Virtual Network via the `VirtualNetwork` resource | ||
type. | ||
|
||
When using declared resources, the following fields need to be provided: | ||
|
||
- `virtualNetworkName` - The name of the Azure Virtual Network resource | ||
|
||
All supported metrics are documented in the official [Azure Monitor documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/metrics-supported#microsoftnetworkvirtualnetworks). | ||
|
||
Example: | ||
|
||
```yaml | ||
name: azure_virtual_network_ddos_attack | ||
description: "Indication whether or not there is a DDOS attack on the Azure Virtual Network" | ||
resourceType: VirtualNetwork | ||
azureMetricConfiguration: | ||
metricName: IfUnderDDoSAttack | ||
aggregation: | ||
type: Maximum | ||
resources: # Optional, required when no resource discovery is configured | ||
- virtualNetworkName: promitor-virtual-network-1 | ||
- virtualNetworkName: promitor-virtual-network-2 | ||
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://promitor.io/concepts/how-it-works#using-resource-discovery) | ||
- name: virtual-network-landscape | ||
``` | ||
<!-- markdownlint-disable MD033 --> | ||
[← back to metrics declarations](/configuration/v2.x/metrics)<br /> | ||
[← back to introduction](/) | ||
<!-- markdownlint-enable --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.