-
-
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 support for scraping Azure Synapse workspace, Apache Sp…
…ark & SQL pools (#1513) * Add basics Signed-off-by: Tom Kerkhove <[email protected]> * Provide documentation & changelog Signed-off-by: Tom Kerkhove <[email protected]> * Add discovery groups Signed-off-by: Tom Kerkhove <[email protected]> * Add new metrics Signed-off-by: Tom Kerkhove <[email protected]> * Implement scrapers Signed-off-by: Tom Kerkhove <[email protected]> * Less verbose logs Signed-off-by: Tom Kerkhove <[email protected]> * Information logs Signed-off-by: Tom Kerkhove <[email protected]> * Cleanup Signed-off-by: Tom Kerkhove <[email protected]> * Code cleanup Signed-off-by: Tom Kerkhove <[email protected]> * Provide unit tests Signed-off-by: Tom Kerkhove <[email protected]>
- Loading branch information
1 parent
a5cc8ba
commit 3acf6c2
Showing
54 changed files
with
1,572 additions
and
56 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
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
44 changes: 44 additions & 0 deletions
44
docs/configuration/v2.x/metrics/synapse-apache-spark-pool.md
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,44 @@ | ||
--- | ||
layout: default | ||
title: Azure Synapse (Apache Spark pool) Declaration | ||
--- | ||
|
||
## Azure Synapse (Apache Spark pool) | ||
|
||
![Availability Badge](https://img.shields.io/badge/Available%20Starting-v2.1-green.svg)![Resource Discovery Support Badge](https://img.shields.io/badge/Support%20for%20Resource%20Discovery-Yes-green.svg) | ||
|
||
You can scrape an Azure Synapse Apache Spark pool via the `SynapseApacheSparkPool` resource type. | ||
|
||
The following fields need to be provided: | ||
|
||
- `workspaceName` - The name of the Azure Synapse workspace. | ||
- `poolName` - The name of the Apache Spark pool. | ||
|
||
All supported metrics are documented in the official [Azure Monitor documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftsynapseworkspacesbigdatapools). | ||
|
||
The following scraper-specific metric labels will be added: | ||
|
||
- `workspace_name` - The name of the Azure Synapse workspace. | ||
- `pool_name` - The name of the Apache Spark pool. | ||
|
||
Example: | ||
|
||
```yaml | ||
- name: promitor_demo_synapse_apache_spark_apps_ended | ||
description: "Amount of apps ended running on Apache Spark pool in Azure Synapse" | ||
resourceType: SynapseApacheSparkPool | ||
azureMetricConfiguration: | ||
metricName: BigDataPoolApplicationsEnded | ||
aggregation: | ||
type: Total | ||
resources: | ||
- workspaceName: promitor-synapse | ||
poolName: sparkpool | ||
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://promitor.io/concepts/how-it-works#using-resource-discovery) | ||
- name: synapse-apache-spark-pools | ||
``` | ||
<!-- 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,44 @@ | ||
--- | ||
layout: default | ||
title: Azure Synapse (SQL pool) Declaration | ||
--- | ||
|
||
## Azure Synapse (SQL pool) | ||
|
||
![Availability Badge](https://img.shields.io/badge/Available%20Starting-v2.1-green.svg)![Resource Discovery Support Badge](https://img.shields.io/badge/Support%20for%20Resource%20Discovery-Yes-green.svg) | ||
|
||
You can scrape an Azure Synapse SQL pool via the `SynapseSqlPool` resource type. | ||
|
||
The following fields need to be provided: | ||
|
||
- `workspaceName` - The name of the Azure Synapse workspace. | ||
- `poolName` - The name of the SQL pool. | ||
|
||
All supported metrics are documented in the official [Azure Monitor documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftsynapseworkspacessqlpools). | ||
|
||
The following scraper-specific metric labels will be added: | ||
|
||
- `workspace_name` - The name of the Azure Synapse workspace. | ||
- `pool_name` - The name of the SQL pool. | ||
|
||
Example: | ||
|
||
```yaml | ||
- name: promitor_demo_synapse_sql_pool_dwu_limit | ||
description: "Amount of DWUs defined as limit for SQL pool in Azure Synapse" | ||
resourceType: SynapseSqlPool | ||
azureMetricConfiguration: | ||
metricName: DWULimit | ||
aggregation: | ||
type: Maximum | ||
resources: | ||
- workspaceName: promitor-synapse | ||
poolName: sqlpool | ||
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://promitor.io/concepts/how-it-works#using-resource-discovery) | ||
- name: synapse-sql-pools | ||
``` | ||
<!-- 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,42 @@ | ||
--- | ||
layout: default | ||
title: Azure Synapse (Workspace) Declaration | ||
--- | ||
|
||
## Azure Synapse (Workspace) | ||
|
||
![Availability Badge](https://img.shields.io/badge/Available%20Starting-v2.1-green.svg)![Resource Discovery Support Badge](https://img.shields.io/badge/Support%20for%20Resource%20Discovery-Yes-green.svg) | ||
|
||
You can scrape an Azure Synapse workspace via the `SynapseWorkspace` resource type. | ||
|
||
The following fields need to be provided: | ||
|
||
- `workspaceName` - The name of the Azure Synapse workspace. | ||
|
||
All supported metrics are documented in the official [Azure Monitor documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftsynapseworkspaces). | ||
|
||
The following scraper-specific metric labels will be added: | ||
|
||
- `workspace_name` - The name of the Azure Synapse workspace. | ||
|
||
Example: | ||
|
||
```yaml | ||
- name: promitor_demo_synapse_workspace_builtin_sql_processed_bytes | ||
description: "Amount of bytes processed in Azure Synapse workspace" | ||
resourceType: SynapseWorkspace | ||
azureMetricConfiguration: | ||
metricName: BuiltinSqlPoolDataProcessedBytes | ||
aggregation: | ||
type: Total | ||
resources: | ||
- workspaceName: promitor-synapse | ||
resourceGroupName: promitor-sources | ||
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://promitor.io/concepts/how-it-works#using-resource-discovery) | ||
- name: synapse-apache-spark-pools | ||
``` | ||
<!-- 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
23 changes: 0 additions & 23 deletions
23
src/Promitor.Agents.ResourceDiscovery/Graph/ResourceTypes/SqlDiscoveryQuery.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.