-
-
Notifications
You must be signed in to change notification settings - Fork 92
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 metrics for Azure Automation (#1464)
* Provide configuration Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Support for resource discovery Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Provide validation & scraping Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Assign value to property Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Update guide Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Update changelog Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Fix mapping Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Update guide Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Fix scraper resolution Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Provide docs Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Provide support for specifying the runbook name Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Code quality * Validate runbook name Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * PR fixes Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Add example config Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Cleanup Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com> * Remove duplicate metric Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>
- Loading branch information
1 parent
5a361d4
commit d16392d
Showing
30 changed files
with
566 additions
and
257 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
date: 2021-01-01T20:46:47+02:00 | ||
weight: 1 | ||
version: | ||
--- | ||
|
||
- {{% tag added %}} Support for scraping Azure Automation account ([docs](https://promitor.io/configuration/v2.x/metrics/automation-account) | ||
| [#352](https://github.com/tomkerkhove/promitor/issues/352)) |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
layout: default | ||
title: Azure Automation Account Declaration | ||
--- | ||
|
||
## Azure Automation account | ||
|
||
![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 Automation account via the `AutomationAccount` | ||
resource type. | ||
|
||
The following fields need to be provided: | ||
|
||
- `accountName` - The name of the Azure Automation account. | ||
- `runbookName` - The name of the runbook. (optional and only supported on limited metrics) | ||
|
||
All supported metrics are documented in the official [Azure Monitor documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftautomationautomationaccounts). | ||
|
||
The following scraper-specific metric label will be added : | ||
|
||
- `runbook_name` - Name of the runbook | ||
|
||
Example: | ||
|
||
```yaml | ||
name: promitor_demo_automation_job_count | ||
description: "Amount of jobs per Azure Automation account & job" | ||
resourceType: AutomationAccount | ||
azureMetricConfiguration: | ||
metricName: TotalJob | ||
aggregation: | ||
type: Total | ||
resources: | ||
- resourceGroupName: promitor-sources | ||
accountName: promitor-sandbox | ||
runbookName: Example # Optional, currently only supported for 'TotalJob' metric | ||
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://promitor.io/concepts/how-it-works#using-resource-discovery) | ||
- name: automation-accounts | ||
``` | ||
<!-- 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.