Skip to main content

Export Kea Metrics in the Prometheus Exposition Format

Project description

GitHub license GitHub tag (latest SemVer)

kea-exporter

Prometheus Exporter for the ISC Kea DHCP Server.

From v0.4.0 on Kea >=1.3.0 is required, as the configuration, specifically subnet information, will be read from the control socket.

Installation

Package versions via repology.org

The latest stable version can always be installed from PyPi:

$ pip install kea-exporter

and upgraded with:

$ pip install --upgrade kea-exporter

Features

  • DHCP4 & DHCP6 Metrics (tested against Kea 1.6.0)

  • Configuration and statistics via control socket

Currently not working:

  • Automatic config reload (through inotify)

Known Limitations

The following features are not supported yet, help is welcome.

  • HTTP REST API (as a means to query a Kea instance)

  • Shared Networks

  • Custom Subnet Identifiers

Usage

Usage: kea-exporter [OPTIONS] SOCKETS...

Options:
  --address TEXT      Specify the address to bind against.
  --port INTEGER      Specify the port on which to listen.
  --interval INTEGER  Specify the metrics update interval in seconds.
  --version           Show the version and exit.
  --help              Show this message and exit.

Configure Control Socket

The exporter uses Kea’s control socket to request both configuration and statistics. Consult the documentation on how to set up the control socket:

Permissions

Kea Exporter needs to be able to read and write on the socket, hence it’s permissions might need to be modified accordingly.

Grafana-Dashboard

A dashboard for this exporter is available at https://grafana.com/grafana/dashboards/12688.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kea-exporter-0.4.4.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

kea_exporter-0.4.4-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file kea-exporter-0.4.4.tar.gz.

File metadata

  • Download URL: kea-exporter-0.4.4.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.7 Linux/5.19.5

File hashes

Hashes for kea-exporter-0.4.4.tar.gz
Algorithm Hash digest
SHA256 f215907c8f470922a19203771749b0bca28983a165c2a459d50b90141d585eb7
MD5 3033d7f5b1289f48ef4fc77635d8ce6c
BLAKE2b-256 b16f3748c95d7eb72d6f71d511ac894069a19a42d04d3a6bf30cb034e04a3cf2

See more details on using hashes here.

File details

Details for the file kea_exporter-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: kea_exporter-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.7 Linux/5.19.5

File hashes

Hashes for kea_exporter-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5d7ebb1664fd5b1425072e90d0aeb423ec5e821e7026f02fe37cca8e67b7783b
MD5 cf89541e2b8e59268db86a0431114940
BLAKE2b-256 33ed28425a73278e5d9747c1228f24add0f7a15bab10a33f84dfef4a5c380bc5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page