A simple ping exporter for Prometheus metrics.
Project description
pingdat
A Prometheus exporter for ping statistics.
Installation
Install the published package using pip:
pip3 install pingdat
This project uses uv to manage dependencies and a local virtual environment. To
get started, clone the repository and install the dependencies with the following:
uv sync
Grafana Dashboard
A Grafana dashboard is available as #(17922)[https://grafana.com/grafana/dashboards/17922].
Usage
Run the module and tell it which config file to use.
python3 -m pingdat --config pingdat.yaml
If you are using uv to manage the virtual environment, use the following:
uv run pingdat --config pingdat.yaml
Docker
pingdat is available as a published Docker image. To run, use the latest version:
from Docker Hub:
docker container run --rm --publish 9056:9056 "jheddings/pingdat:latest"
The configuration file is read from /opt/pingdat/pingdat.yaml and may be changed
with arguments to the container:
docker container run --rm --tty --publish 9056:9056 \
--volume "/path/to/host/config:/etc/pingdat" \
"jheddings/pingdat:latest" --config /etc/pingdat/pingdat.yaml
Docker Compose
A sample configuration is also provided for using docker compose. Similar to using
Docker directly, the configuration file can be provided on the host side. Then,
simply start the cluster normally:
docker compose up
Or detached as a background process:
docker compose up --detach
Configuration
For now, review the sample pingdat.yaml config file for a description of supported
configuration options.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pingdat-1.6.4.tar.gz.
File metadata
- Download URL: pingdat-1.6.4.tar.gz
- Upload date:
- Size: 47.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb53e3c8547a805b525166253a58f642a73c097848ecd21050c1c51328e47115
|
|
| MD5 |
6dc5c594aea11a52f88a70a849b8ab86
|
|
| BLAKE2b-256 |
60090ebf21ca317709119215fa5873094ae37db1cddf6295677da859778ac693
|
File details
Details for the file pingdat-1.6.4-py3-none-any.whl.
File metadata
- Download URL: pingdat-1.6.4-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bf913db7d4c54638c3474c43d95d0b6279645eb5f5e8392748748e2df473c29
|
|
| MD5 |
60aa99ed76bc07cf63e07a2919136cab
|
|
| BLAKE2b-256 |
1e1abc30ca41cd6efb1f18bff18f9da117c326a9ed5cd2f898be41effbe27c34
|