Skip to content
ullmanPublic

About

simple protocol for receiving sensor data over UART for scraping by prometheus

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

randbus

Description

Randbus uses a simple protocol for receiving sensor data over UART for scraping by prometheus.

Dependencies

General:

sudo apt install build-essential automake zlib1g-dev libmicrohttpd-dev

and

libprom-dev
libpromhttp-dev

available here

Compiling

$ ./autogen.sh
$ ./configure
$ make

Usage

randbus -i /dev/ttyX
-i [Serial device]
-p [Port for Prometheus exporter]

Prometheus configuration for exporting with randbus

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"}

Licence

GPL Version 3

See COPYING for details

About

simple protocol for receiving sensor data over UART for scraping by prometheus

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages