This is sample code which illustrates how to write and read custom metrics to Azure Monitor. Before you use this sample, you will need the following: 1) Azure subscription 2) Azure resource which is created in one of the following regions (westu2, westcentralus, northeurope, westeurope, eastus, southcentralus, southeastasia) 3) AAD application to the Azure subscription which has permission to write and read custom metrics (Microsoft.Insights/metrics/*) In order to run this sample, you will need to perform the following: 1) Compile the source code: go build -o <binaryname> . 2) Update secret.yml with the AAD application credentials and Azure subscription 3) Run the executable: ./<binaryname> <resourceId> <resourceRegion>
-
Notifications
You must be signed in to change notification settings - Fork 1
Sample code for Azure Monitor custom metrics
License
asheniam/azuremonitorcustommetricsample
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Sample code for Azure Monitor custom metrics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published