jannickfahlbusch / CarStatsViewer-Exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CarStatsViewer-Exporter

Running

To locally run the exporter you need to run the following:

go run cmd/carstatsviewer-exporter/main.go

By default, the exporter will listen on :8080. You can customize this by specifying -listen-address.

Alternatively you can run the exporter using Docker via:

docker build -t carstatsviewer-exporter .
docker run -p 8080:8080 carstatsviewer-exporter

Endpoints

The metrics are available under the /metrics endpoint. Additionally, the /data endpoint serves the last received payload (If any).

Live data needs to be POSTed to /live. There is currently no security in place. Use this exporter only for experiments to play around with the HTTP live data PoC (See Ixam97/CarStatsViewer#139) of the CarStatsViewer.

Owntracks Integration

The exporter is able to forward the received coordinates to an Owntracks instance via HTTP. To enable the integration, specify -owntracks-url. Customization of the user or device is possible via -owntracks-user and -owntracks-device

About

License:MIT License


Languages

Language:Go 98.3%Language:Dockerfile 1.7%