Introduction
Microk8s DNS schedules a DNS Pod and service on the cluster, and configures the kubelets to tell individual containers to use the DNS Service IP to resolve DNS names.
Global Template
Assign following template to Microk8s Master or Microk8s integration resource under Infrastructure > Resources > Microk8s page.
Collector Type: Agent
Category: Application Monitors
G2 Monitor Name: Agent G2 - Linux - MicroK8s CoreDNS
Global Template Name: Agent G2 - Linux - MicroK8s CoreDns
Collected Metrics
Metric Name | Display Name | Description | Units |
---|---|---|---|
coredns.panics | Total Panics | Total number of panics. | |
coredns.query.count | Query count | Total number of query count. | |
coredns.request_duration.seconds.sum | Request Duration Seconds Sum | Duration to process each query. | |
coredns.request_duration.seconds.count | Request Duration Seconds Count | Duration per upstream interaction. | |
coredns.response_size.bytes.sum | Response Size Bytes Sum | Size of the returns response . | bytes |
Note
CoreDNS is supported in the later versions of Kubernetes 1.21.Validate
Navigate to Infrastructure > Resources tab to check if your resources are onboarded and the metrics are collected.