{"id":18082877,"url":"https://github.com/natesales/gpsd-exporter","last_synced_at":"2025-04-05T23:13:32.494Z","repository":{"id":104222038,"uuid":"519100005","full_name":"natesales/gpsd-exporter","owner":"natesales","description":"Export gpsd metrics to Prometheus","archived":false,"fork":false,"pushed_at":"2022-07-30T01:23:30.000Z","size":615,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-12T05:14:57.202Z","etag":null,"topics":["gpsd","time-synchronization"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/natesales.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-29T06:08:10.000Z","updated_at":"2024-04-10T04:25:15.000Z","dependencies_parsed_at":"2023-07-15T14:31:20.280Z","dependency_job_id":null,"html_url":"https://github.com/natesales/gpsd-exporter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natesales%2Fgpsd-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natesales%2Fgpsd-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natesales%2Fgpsd-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natesales%2Fgpsd-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natesales","download_url":"https://codeload.github.com/natesales/gpsd-exporter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411243,"owners_count":20934654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpsd","time-synchronization"],"created_at":"2024-10-31T14:06:18.062Z","updated_at":"2025-04-05T23:13:32.464Z","avatar_url":"https://github.com/natesales.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus exporter for [gpsd](https://gpsd.io)\n\n[![Release](https://img.shields.io/github/v/release/natesales/gpsd-exporter?style=for-the-badge)](https://github.com/natesales/gpsd-exporter/releases)\n[![Go Report](https://goreportcard.com/badge/github.com/natesales/gpsd-exporter?style=for-the-badge)](https://goreportcard.com/report/github.com/natesales/gpsd-exporter)\n[![License](https://img.shields.io/github/license/natesales/gpsd-exporter?style=for-the-badge)](https://raw.githubusercontent.com/natesales/gpsd-exporter/main/LICENSE)\n\n`gpsd-exporter` polls `gpsd` over its TCP JSON interface and exports the data to Prometheus.\n\n### Supported gpsd classes\n\n- Time position value ([TPV](https://gpsd.io/gpsd_json.html#_tpv))\n- Sky view ([SKY](https://gpsd.io/gpsd_json.html#_sky))\n- Satellite ([Satellite](https://gpsd.io/gpsd_json.html#_satellite))\n- Pseudorange noise report ([GST](https://gpsd.io/gpsd_json.html#_gst))\n- Time offset ([TOFF](https://gpsd.io/gpsd_json.html#_toff))\n- Pulse per second ([PPS](https://gpsd.io/gpsd_json.html#_pps))\n- Oscillator ([OSC](https://gpsd.io/gpsd_json.html#_osc))\n- gpsd Version ([VERSION](https://gpsd.io/gpsd_json.html#_version))\n\nSee [gpsd's protocol responses](https://gpsd.io/gpsd_json.html#_core_protocol_responses) for more information.\n\n\n### Grafana\n\n![Grafana](grafana.png)\n\nA simple dashboard is available to [import into Grafana](https://grafana.com/docs/grafana/latest/dashboards/export-import/#import-dashboard) from the gpsd-exporter [Grafana JSON file](https://raw.githubusercontent.com/natesales/gpsd-exporter/main/grafana-dashboard.json).\n\n### Quickstart\n\nWith `gpsd` running on `localhost:2947`:\n\n#### Linux\n\nInstall `gpsd-exporter` from the [apt/yum repo](https://github.com/natesales/repo) or build with `go build`\n\n```bash\n$ gpsd-exporter\nINFO[0000] Starting metrics exporter on :9978/metrics\nINFO[0000] Connecting to gpsd on localhost:2947\n```\n\n#### Docker\n\n```bash\ndocker run -p 9978:9978 ghcr.io/natesales/gpsd-exporter\n``` \n\n### Usage\n\n```bash\nUsage of ./gpsd-exporter:\n  -d string\n        gpsd address (default \"localhost:2947\")\n  -l string\n        metrics listen address (default \":9978\")\n  -p duration\n        gpsd poll interval (default 10s)\n  -v    enable verbose logging\n  -vv\n        enable extra verbose logging\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatesales%2Fgpsd-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatesales%2Fgpsd-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatesales%2Fgpsd-exporter/lists"}