Microk8s KubeDNS 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 - Kubernetes DNS Monitoring

Global Template Name: Agent G2 - Linux - Kubernetes DNS Monitoring

Collected Metrics

Metric NameDisplay NameDescriptionUnits
kubedns.cachemiss_countCachemiss CountNumber of DNS cache misses (from start of process)-
kubedns.error_countError CountNumber of DNS requests resulting in an error-
kubedns.request_countRequest CountTotal number of DNS requests made-
kubedns.request_duration.seconds.countRequest Duration Seconds CountNumber of requests on which the kubedns.request_duration.seconds.sum metric is evaluated-
kubedns.request_duration.seconds.sumRequest Duration Seconds SumTime (in seconds) taken to resolve each request-
kubedns.response_size.bytes.countResponse Size Bytes CountNumber of responses on which the kubedns.response_size.bytes.sum metric is evaluated-
kubedns.response_size.bytes.sumResponse Size Bytes SumSize of the returns response in bytesbytes


Navigate to Infrastructure > Resources tab to check if your resources are onboarded and the metrics are collected.