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.6.1.tar.gz (6.1 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.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pingdat-1.6.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.1 Linux/6.11.0-1018-azure

File hashes

Hashes for pingdat-1.6.1.tar.gz
Algorithm Hash digest
SHA256 41cb1e3134beb7ea7fcc57fa9a0d7eebaef863910641625f2b440698390fe977
MD5 89279b5ad10b6d6a7753c190a71d4988
BLAKE2b-256 0f7898d790bb6838409ecf5c7fe88f73689dcce0b9b06dde77fd4b157371d45b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pingdat-1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.1 Linux/6.11.0-1018-azure

File hashes

Hashes for pingdat-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2163715d5189848fada3d1af5fadb99264c5051e9348d7888af38f779272e027
MD5 8c0d2f6553c137bc66fd7a5f67d1dd07
BLAKE2b-256 41d591e567af417cdffd71e451d89f9ae0ac0014e2f8c08c481d3b8e8d9bdb33

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