Prometheus exporter for gpsd
gpsd-exporter
polls gpsd
over its TCP JSON interface and exports the data to Prometheus.
- Time position value (TPV)
- Sky view (SKY)
- Satellite (Satellite)
- Pseudorange noise report (GST)
- Time offset (TOFF)
- Pulse per second (PPS)
- Oscillator (OSC)
- gpsd Version (VERSION)
See gpsd's protocol responses for more information.
A simple dashboard is available to import into Grafana from the gpsd-exporter Grafana JSON file.
With gpsd
running on localhost:2947
:
Install gpsd-exporter
from the apt/yum repo or build with go build
$ gpsd-exporter
INFO[0000] Starting metrics exporter on :9978/metrics
INFO[0000] Connecting to gpsd on localhost:2947
docker run -p 9978:9978 ghcr.io/natesales/gpsd-exporter
Usage of ./gpsd-exporter:
-d string
gpsd address (default "localhost:2947")
-l string
metrics listen address (default ":9978")
-p duration
gpsd poll interval (default 10s)
-v enable verbose logging
-vv
enable extra verbose logging