/managed-prometheus-exporter-dns

Prometheus exporter for DNS latency

Primary LanguagePythonApache License 2.0Apache-2.0

Table of Contents generated with DocToc

Monitor Overview

Every minute, the dns test attempts to resolve redhat.com and times how long it takes.

An alert is triggered if dns resolution for the last 5 minutes averages above 200ms.

Metrics

Note: These amounts reset each time the test is installed or restarted.

  • dns_latency_milliseconds - The time spent resolving dns
  • dns_failure_failure_total - The total number of dns errors encountered during tests

Installation Process

Installation of the exporter is a multi-step process. Step one is to use the provided Makefile to render various templates into OpenShift YAML manifests.

Rendering Templates with Make

Use make to render the YAML manifests for the exporter.

Once these have been created the collection of manifests can be applied in the usual fashion (such as oc apply -f).

Additional Make Targets

The Makefile includes three helpful targets:

  • clean - Delete any of the rendered manifest files which the Makefile renders
  • filelist - Echos to the terminal a list of all the YAML files in the deploy directory
  • resourcelist - Echos to the terminal a list of OpenShift/Kubernetes objects created by the manifests in the deploy directory, which may be useful for those wishing to delete the installation of this monitor.

Prometheus Rules

Rules are provided by the openshift/managed-cluster-config repository.