... | ... | @@ -143,29 +143,7 @@ And restart Prometheus to see the BIND 9 metrics. |
|
|
|
|
|
## Kea exporter
|
|
|
|
|
|
There is a Kea exporter for Prometheus available publicly [here](https://github.com/mweinelt/kea-exporter). The Github page explains how to install the exporter using `pip`:
|
|
|
|
|
|
```
|
|
|
$ pip install kea-exporter
|
|
|
```
|
|
|
|
|
|
The python3 is required to run the Kea exporter. Note the usage has been changed recently. Versions earlier to 0.4.0 specified config file. Version 0.4.0 now lets you specify socket path. The following command line enables the Kea exporter with the Kea DHCPv4 server:
|
|
|
|
|
|
```
|
|
|
sudo kea-exporter --port 9547 /tmp/kea-dhcp4-ctrl.sock
|
|
|
```
|
|
|
|
|
|
The exporter infers the (UNIX domain) control socket configuration from the Kea configuration file. It also looks into the subnets configuration to determine the identifiers of the subnets in use. The exporter by default starts the service on the local host, port 9547.
|
|
|
|
|
|
The Kea exporter was designed to gather statistics from both DHCPv4 and DHCPv6 servers. However, it assumes that the configuration for both servers is stored in the same file. This is no longer possible in the latest Kea versions. Therefore, it is only possible to run the Kea exported for one Kea server type.
|
|
|
|
|
|
The Kea exporter for the second server can be run using different port number, e.g.:
|
|
|
|
|
|
```
|
|
|
sudo kea-exporter --port 19547 /tmp/kea-dhcp6-ctrl.sock
|
|
|
```
|
|
|
|
|
|
TODO: Describe the bugfix.
|
|
|
Prometheus exporter capability is now provided natively by stork agent. Please install stork-agent.
|
|
|
|
|
|
# 2. Grafana
|
|
|
|
... | ... | |