Skip to main content

A simple ping exporter for Prometheus metrics.

Project description

pingdat

PyPI LICENSE Style

A Prometheus exporter for ping statistics.

Installation

Install the published package using pip:

pip3 install pingdat

This project uses poetry to manage dependencies and a local virtual environment. To get started, clone the repository and install the dependencies with the following:

poetry install

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 poetry to manage the virtual environment, use the following:

poetry 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


Download files

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

Source Distribution

pingdat-1.5.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

pingdat-1.5.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file pingdat-1.5.1.tar.gz.

File metadata

  • Download URL: pingdat-1.5.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.8.0-1014-azure

File hashes

Hashes for pingdat-1.5.1.tar.gz
Algorithm Hash digest
SHA256 cd42c7a0b10cdeea036bfecf8e39604af9bd2a2c6b8ef109105171fce031bd7a
MD5 cc0e96db71d636bca00c3e687c0d5c23
BLAKE2b-256 54bf75e779731c9da5b73c14c30483fa4d5158ef4f0caa71e1766586e70107b5

See more details on using hashes here.

File details

Details for the file pingdat-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: pingdat-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.8.0-1014-azure

File hashes

Hashes for pingdat-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b28ccc776f53057c1f4d114312441959c037813bc5786b29e900ab165610042
MD5 94badcd75f8844d4646ceb4b5c944f72
BLAKE2b-256 3b11dfedde26dd08c9242eb1e9d8ce50bb2e67dfd03e46d00d438b6583960dbd

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