
Azure Push
CertifiedPush metrics to Azure Monitor
Azure Push
Push metrics to Azure Monitor
Posts custom metrics payloads to the Metrics Ingestion endpoint using Azure AD authentication. Requires regional endpoint and DCR ingestion path.
type: io.kestra.plugin.azure.monitoring.PushExamples
Push a custom metric to Azure Monitor via a Data Collection Rule
id: azure_monitor_push
namespace: company.team
tasks:
- id: push
type: io.kestra.plugin.azure.monitoring.Push
tenantId: "{{ secret('AZURE_TENANT_ID') }}"
clientId: "{{ secret('AZURE_CLIENT_ID') }}"
clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
endpoint: "https://westeurope.metrics.monitor.azure.com"
path: "/dataCollectionRules/dcr-xxxxxxxxxxxxxxxx/streams/Custom-MyStream"
metrics:
time: "2024-01-01T00:00:00Z"
data:
baseData:
metric: "OrdersProcessed"
namespace: "MyCompany.Orders"
dimNames:
- "Environment"
series:
- dimValues:
- "Production"
sum: 100
count: 5
Properties
endpoint *Requiredstring
Azure Monitor regional endpoint
Regional metrics endpoint, e.g. https://westeurope.metrics.monitor.azure.com
metrics *Requiredobject
Metric data body
JSON payload formatted for Azure Monitor ingestion API
path *Requiredstring
DCR ingestion path
Path portion of the Data Collection Rule ingestion URL (e.g., /dataCollectionRules/{id}/streams/{stream})
tenantId *Requiredstring
Azure AD tenant ID (GUID)
clientId string
Client ID of the Azure AD application
Application (client) ID used for service principal authentication.
clientSecret string
Client secret for the Azure AD application
Secret value associated with the client ID; store in a Kestra secret.
pemCertificate string
PEM-encoded certificate content for client authentication
PEM text for certificate-based auth; alternative to clientSecret.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
Outputs
body object
Ingestion response body
Raw JSON returned by the ingestion API