Randbus uses a simple protocol for receiving sensor data over UART for scraping by prometheus.
General:
sudo apt install build-essential automake zlib1g-dev libmicrohttpd-devand
libprom-dev
libpromhttp-devavailable here
$ ./autogen.sh
$ ./configure
$ makerandbus -i /dev/ttyX-i [Serial device]
-p [Port for Prometheus exporter]
Add the following in your Prometheus config file, prometheus.yml, under the section scrape_configs:
Adjust the port to match velog. Adjust ip if scraping from another machine.
- job_name: randbus
static_configs:
- targets: ['localhost:9009']
After restarting Prometheus, the velog data is available in the format:
randbus{label="SENSOR-NAME"}
GPL Version 3
See COPYING for details