An OBD reader in a Docker container for Raspberry Pi with Prometheus exporting.
- Automatically connects to the OBD port via python-OBD.
- Exports all
Unit.*
commands asGauges
via the prometheus/client_python on port 8000. - Runs idendefinitely, re-connecting to the car as it appears and disappears.
A Raspberry Pi with a serial OBD reader, or with a Bluetooth reader connected to /dev/rfcomm0
. See these instructions for help.
kubectly apply -f https://raw.githubusercontent.com/zaneclaes/tiny-cluster/master/kubernetes/obd-monitor.yaml
And then label the nodes which you wish to deploy on (replacing [NODE_NAME]
with your node):
kubectl label nodes [NODE_NAME] tiny-cluster/node-pi-obd-monitor=true
Assuming the device resides at /dev/rfcomm0
, the command will be something like this:
docker run --rm --name obd-monitor --mount "type=bind,source=/dev/rfcomm0,target=/dev/rfcomm0" --privileged=true inzania/node-pi-obd-monitor:latest