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 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


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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pingdat-1.6.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pingdat-1.6.3.tar.gz
  • Upload date:
  • Size: 51.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for pingdat-1.6.3.tar.gz
Algorithm Hash digest
SHA256 499726f98c16dbc5d3805a022987a53131b93d9c07ea280c5948abe9e02f9a9d
MD5 5ec339dbb5a264a1e05aaec0abf76da2
BLAKE2b-256 c7d651c66ebc4fcdccc027dbfd21c64657aa0c16f848708e38dd31fff6a6eb4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pingdat-1.6.3-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for pingdat-1.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d8630e2148210f8af243032650b128bf50bd69334362e5f9f0b2e5f90f2940c1
MD5 8d6235bde4f08a59510861fd158b7180
BLAKE2b-256 b8de80a424afb4b106e005851dc7c02f4d4cd49b2f1304ae66dacbcc4493361f

See more details on using hashes here.

Supported by

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