Skip to main content

Export Kea Metrics in the Prometheus Exposition Format

Project description

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

The latest stable version can 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.

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.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

kea_exporter-0.4.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kea-exporter-0.4.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200421 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.7

File hashes

Hashes for kea-exporter-0.4.1.tar.gz
Algorithm Hash digest
SHA256 c32eb65fdc5ca8a7dc457f71a24b5c357622cbc4e76cd7cf7c63793c280fc5c7
MD5 ce5049ee4f57c4682b2943f122fc5345
BLAKE2b-256 0e39c7707953b2cf5d5bd3a784a071c50bb1422400662c40d5132d6e531c0be5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kea_exporter-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200421 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.7

File hashes

Hashes for kea_exporter-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39652dfd646e5355f4054122e026ec85ef03a2251d275eb357485f4e8440b928
MD5 b9bf8bb70da3484285e206457f9d1bc8
BLAKE2b-256 3666ae87ea323228a9a26397210c261aff7183e55459e3e91db2559ecbc684e6

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