Skip to content

Azure Container Instances

Availability BadgeResource Discovery Support Badge

You can declare to scrape an Azure Container Instances via the ContainerInstance resource type.

When using declared resources, the following fields need to be provided:

  • containerGroup - The name of the container group

All supported metrics are documented in the official Azure Monitor documentation.

Example

Here is an example configuration:

name: azure_container_instance_cpu_usage
description: "Average cpu usage of our 'promitor-container-instance' container instance"
resourceType: ContainerInstance
azureMetricConfiguration:
  metricName: CpuUsage
  aggregation:
    type: Average
resources: # Optional, required when no resource discovery is configured
- containerGroup: promitor-container-instance-1
- containerGroup: promitor-container-instance-2
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://docs.promitor.io/latest/how-it-works#using-resource-discovery)
- name: container-instances-landscape