Skip to content

Azure Kubernetes

Collect Azure Kubernetes metrics

Configuration

Install Func

It is recommended to activate TrueWatch integration - extensions - DataFlux Func (Automata): all prerequisites are automatically installed, please proceed with script installation

For self-deploying Func, refer to Self-deploying Func

Install Script

Note: Please prepare the required Azure app registration information in advance and assign the Monitoring Reader role to the app registration

To synchronize monitoring data from Azure Kubernetes Service, we install the corresponding collection script: 「Integration (Azure-Kubernetes service collection)」(ID: integration_azure_kubernetes)

After clicking 【Install】, input the corresponding parameters:

  • Azure Tenant ID: Tenant ID
  • Azure Client ID: App registration Client ID
  • Azure Client Secret Value: Client secret value, note that it is not the ID
  • Subscriptions: Subscription ID, multiple subscriptions separated by ,

Click 【Deploy Startup Script】, the system will automatically create Startup script sets and configure the corresponding startup scripts.

After enabling, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click 【Execute】 to immediately execute once without waiting for the scheduled time. After a while, you can check the execution task records and corresponding logs.

Verification

  1. In 「Manage / Automatic Trigger Configuration」, confirm whether the corresponding task has the automatic trigger configuration, and check the task records and logs for any anomalies
  2. In TrueWatch, 「Infrastructure - Resource Catalog」, check if asset information exists
  3. In TrueWatch, 「Metrics」, check if there is corresponding monitoring data

Metrics

Collect Azure Kubernetes Service metrics, you can collect more metrics by configuration Microsoft.ContainerService/managedClusters supported metrics

Metric Name Description Unit
apiserver_current_inflight_requests Number of in-flight requests count
cluster_autoscaler_cluster_safe_to_autoscale Cluster health boolean
cluster_autoscaler_scale_down_in_cooldown Scale down in cooldown -
cluster_autoscaler_unneeded_nodes_count Unneeded nodes count
cluster_autoscaler_unschedulable_pods_count Unschedulable pods count
kube_node_status_allocatable_cpu_cores Total number of available CPU cores in the managed cluster count
kube_node_status_allocatable_memory_bytes Total amount of available memory in the managed cluster count
kube_node_status_condition Status of various node conditions count
kube_pod_status_phase Number of pods by phase count
kube_pod_status_ready Number of pods in ready state count
node_cpu_usage_millicores CPU usage (millicores) %
node_disk_usage_bytes Disk usage in bytes bytes
node_disk_usage_percentage Disk usage percentage %
node_memory_rss_bytes Memory RSS in bytes bytes
node_memory_rss_percentage Memory RSS percentage %
node_memory_working_set_bytes Memory working set in bytes bytes
node_memory_working_set_percentage Memory working set percentage %
node_network_in_bytes Network incoming bytes bytes
node_network_out_bytes Network outgoing bytes bytes