lisa / managed-prometheus-exporter-dns

Prometheus exporter for DNS latency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Prometheus exporter for DNS latency

License:Apache License 2.0


Languages

Language:Python 51.1%Language:Makefile 40.6%Language:Shell 8.2%