Azure Monitor Metrics
Hosted Graphite provides an Azure add-on available in the Add-Ons page of your account. This add-on syncs the metrics from the specified Azure resources into your account.
To connect to your Azure account, you need to provide the following information:
Search for 'Active Directory' in the search bar which should take you to the tenant overview. Here you will be able to find the tenant id.
Within the subscription service interface, access the IDs by navigating to the "Overview" tab. Ensure you provide all the necessary IDs for the subscriptions from which you intend to retrieve metrics.
To get the Client ID along with the Client Secret, an application will need to be registered, this will act as authentication allowing Hosted Graphite to pull metrics.
Once the App has been created, the Client ID can be obtained from the overview tab.
A Client Secret will need to be generated for the app. Navigate to the 'Certificate & Secrets' tab on the right. The Client Secret will be the under the 'value' column.
The last step is to add permissions to the subscription, this will pass down the permission to all groups and resources within the subscription.
Back in the subscription overview navigate to 'Access Control (IAM)'. The role required to pull the metrics is 'Reader'.
In the members section make sure to include the App that was created in the previous step. Review and sign the role assignment.
You will be presented with the following page; here you will be able to add, edit, and delete any Azure configurations. This page also provides options to add account names and tags.
The main Azure configuration page looks like the following:
Before saving make sure to include the resource to monitor by selecting the enable checkbox. Tagging is also a feature that can be enabled. If 'Tags' checkbox is enabled then tagging will only be applied to that specific resource. If you don't want tagging to be enabled for a resource then leave it unselected.
If you click Azure Tags you will be presented with the following screen which allows you to edit tags. Each tag has a unique name (shown on the left) and one or more values. Values are separated by a comma.
Example: Entering “Tag_Next”: “hello, world” will configure the Add-On to only pull metrics from resources that have the tag “Tag_Next” and at least one of the matching values of "hello" or "world" for that tag.
If tagging is not selected for any services, but tags are configured for the Add-On, it will act as if tagging is enabled for all services.
If you use multiple Azure Client IDs on your Hosted Graphite account for different Azure accounts, projects or environments, you can keep the metrics separated by assigning Account Names to your Client IDs.
Under the list of Client IDs on your HG account, there’s a button to access the Account Names interface. There you can assign names to your Client IDs, which will then become part of the metric name for all metrics retrieved using that ID.
The Azure metrics for each service are mapped to Hosted Graphite metric names as follows:
If AccountName is enabled then the tenant_id will be replaced by the account name provided.
Click the Delete button and the Azure add-on will be disabled for that account.