-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output: Azure Monitor: Cleanup and add README
- Loading branch information
1 parent
341d467
commit e4f0f68
Showing
4 changed files
with
268 additions
and
211 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
## Azure Monitor Custom Metrics Output for Telegraf | ||
|
||
This plugin will send custom metrics to Azure Monitor. | ||
|
||
All metrics are written as summarized values: min, max, sum, count. The Telegraf field name is appended to the metric name. All Telegraf tags are set as the metric dimensions. | ||
|
||
## Azure Authentication | ||
|
||
This plugin can use one of several different types of credentials to authenticate | ||
with the Azure Monitor Custom Metrics ingestion API endpoint. In the following | ||
order the plugin will attempt to authenticate. | ||
1. Managed Service Identity (MSI) token | ||
- This is the prefered authentication method. | ||
- Note: MSI is only available to ARM-based resources. | ||
2. AAD Application Tokens (Service Principals) | ||
- Primarily useful if Telegraf is writing metrics for other resources. [More information](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-application-objects). | ||
- A Service Principal or User Principal needs to be assigned the `Monitoring Contributor` or `Metric Publisher` roles. | ||
3. AAD User Tokens (User Principals) | ||
- Allows Telegraf to authenticate like a user. It is best to use this method for development. | ||
|
||
## Config | ||
|
||
For this output plugin to function correctly the following variables | ||
must be configured. | ||
|
||
* resourceId | ||
* region | ||
|
||
### region | ||
|
||
The region is the Azure region that you wish to connect to. | ||
Examples include but are not limited to: | ||
* useast | ||
* centralus | ||
* westcentralus | ||
* westeurope | ||
* southeastasia | ||
|
||
### resourceId | ||
|
||
The resourceId used for AWS CloudWatch metrics. | ||
|
||
### Configuration: | ||
|
||
``` | ||
# Configuration for sending aggregate metrics to Azure Monitor | ||
[[outputs.azuremonitor]] | ||
## The resource ID against which metric will be logged. If not | ||
## specified, the plugin will attempt to retrieve the resource ID | ||
## of the VM via the instance metadata service (optional if running | ||
## on an Azure VM with MSI) | ||
#resourceId = "/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Compute/virtualMachines/<vm-name>" | ||
## Azure region to publish metrics against. Defaults to eastus. | ||
## Leave blank to automatically query the region via MSI. | ||
#region = "useast" | ||
## Write HTTP timeout, formatted as a string. If not provided, will default | ||
## to 5s. 0s means no timeout (not recommended). | ||
# timeout = "5s" | ||
## Whether or not to use managed service identity. | ||
#useManagedServiceIdentity = true | ||
## Fill in the following values if using Active Directory Service | ||
## Principal or User Principal for authentication. | ||
## Subscription ID | ||
#azureSubscription = "" | ||
## Tenant ID | ||
#azureTenant = "" | ||
## Client ID | ||
#azureClientId = "" | ||
## Client secrete | ||
#azureClientSecret = "" | ||
``` |
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
Oops, something went wrong.