
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
github.com/joneskoo/ruuvi-prometheus
Advanced tools
This is a simple Prometheus exporter that exports metrics for Ruuvi version 3 data format Bluetooth LE advertisements.
I use ruuvi exporter with Alpine Linux myself and it’s on Alpine Linux repository in edge/testing.
To use this binary release, install Alpine edge and enable the testing
repository and apk add ruuvi-prometheus.
Enable service to start at booth with rc-update add ruuvi-prometheus.
You will need to uncomment "rpi bluetooth" in /etc/mdev.conf for Raspberry Pi Bluetooth to work.
The service binds listen address to :9521 by default.
For usage with Grafana, see grafana-example-dashboard.json.
To keep the exporter stateless (I run it on a headless read-only Raspberry), it is better to add the logical names for sensors in Prometheus configuration. For example:
- job_name: 'ruuvi-prometheus'
static_configs:
- targets: ['ruuvi-prometheus:9521']
metric_relabel_configs:
# ... id and name relabel config for each sensor
- source_labels: ['device']
target_label: 'id'
regex: 'e7:37:3b:37:d9:74'
replacement: '2'
- source_labels: ['id']
target_label: 'name'
regex: '2'
replacement: 'garage'
# Map location based on id
- source_labels: ['id']
regex: '2|3|5|6|7|9'
target_label: 'location'
replacement: 'indoors'
- source_labels: ['id']
regex: '1|4'
target_label: 'location'
replacement: 'outdoors'
Ideally I would like to run this using gokrazy instead, but my current setup requires WiFi with WPA2 and Raspberry Pi Bluetooth which are not supported yet. Once those blockers are solved, gokrazy can create Raspberry appliance image without any C code besides Linux.
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.