Azure Cloud Service Metric Integration :: Kloudfuse Docs
Azure Cloud Service Metric Integration
Enable the Cloud Exporter
To configure sending the metrics to Azure, enable cloud-exporter in the global section of the custom-values.yaml file.
global:
cloud-exporter:
enabled: true
Create ClientID, ClientSecret, TenantID, and Subscription
See Azure Integration Manual Setup Guide.
Specify Secret and Subscription Information in the Cloud Exporter
Under kfuse-cloud-exporter, add the following code, replacing the redacted values with your actual values from Azure portal.
Because you can fetch metrics from multiple subscriptions in Azure at the same time, list all your subscriptions in the subscriptions section.
kfuse-cloud-exporter:
azure-metrics-exporter:
enabled: true
subscriptions:
- xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
secrets:
AZURE_CLIENT_ID: "xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
AZURE_TENANT_ID: "xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
AZURE_CLIENT_SECRET: "xxxx~xxxxxx"
Alternatively, you can mount authentication information from a secret instead of adding it in plain text in the custom-values.yaml file. In this case, add the following:
kfuse-cloud-exporter:
azure-metrics-exporter:
enabled: true
subscriptions:
- xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
extraEnv:
- name: AZURE_CLIENT_ID
valueFrom:
secretKeyRef:
key: AZURE_CLIENT_ID
name: <Secret-name>
- name: AZURE_TENANT_ID
valueFrom:
secretKeyRef:
key: AZURE_TENANT_ID
name: <Secret-name>
- name: AZURE_CLIENT_SECRET
valueFrom:
secretKeyRef:
key: AZURE_CLIENT_SECRET
name: <Secret-name>
The secret must contain these key-value pairs:
data:
AZURE_CLIENT_ID: "xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
AZURE_TENANT_ID: "xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
AZURE_CLIENT_SECRET: "xxxx~xxxxxx"