Skip to main content

Monitor GPSD with Prometheus

Project description

gpsd_prometheus_exporter

Prometheus Exporter for GPSD

Prereqs

  • python
  • pip
  • USB GPS device compatible with gpsd
  • gpsd installed and running

It's a good idea to make sure that gpsd is working and reporting data. Verify using gpsmon or similar:

gpsmon example output

Usage Instructions

gpsd-exporter --help

Usage: gpsd-exporter [OPTIONS]

Options:
  -b, --bind TEXT     Specify alternate bind address [default: 0.0.0.0]
  -p, --port INTEGER  Specify alternate port [default: 8000]
  -d, --debug         Turns on more verbose logging, prints output [default:
                      False]

  --help              Show this message and exit.

Example

Start the exporter on all addresses and port 9999:

gpsd-exporter -b 0.0.0.0 -p 9999

Adding this exporter to Prometheus

  - job_name: gps
    static_configs:
    - targets: ['boat-pi:8000']
      labels:
        group: 'gps'
        location: 'Boat'

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

gpsd_prometheus_exporter-0.3.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

gpsd_prometheus_exporter-0.3.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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