StackState-Kube DNS Integration

Overview

Get metrics from kube-dns service in real time to:

  • Visualize and monitor dns metrics collected via Kubernetes’ kube-dns addon through Prometheus

See https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/dns for more informations about kube-dns

Setup

Installation

This check is packaged with the Agent, so simply install the agent.

Configuration

Edit the kube_dns.yaml file to point to your server and port, set the masters to monitor

Validation

When you run stackstate-agent info you should see something like the following:

Checks
======

    kube_dns
    -----------
      - instance #0 [OK]
      - Collected 39 metrics, 0 events & 7 service checks

Compatibility

The kube_dns check is compatible with all major platforms

Data Collected

Metrics

kubedns.response_size.bytes.sum
(gauge)
Size of the returns response in bytes.
shown as byte
kubedns.response_size.bytes.count
(gauge)
Number of responses on which the kubedns.response_size.bytes.sum metric is evaluated.
shown as response
kubedns.request_duration.seconds.sum
(gauge)
Time (in seconds) each request took to resolve.
shown as second
kubedns.request_duration.seconds.count
(gauge)
Number of requests on which the kubedns.request_duration.seconds.sum metric is evaluated.
shown as request
kubedns.request_count
(gauge)
Number of DNS requests made.
shown as request
kubedns.error_count
(gauge)
Number of DNS requests resulting in an error.
shown as error
kubedns.cachemiss_count
(gauge)
Number of DNS requests that result in a cache miss.
shown as request

Events

The Kube-DNS check does not include any event at this time.

Service Checks

The Kube-DNS check does not include any service check at this time.