Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support scraping multiple sensors #14

Open
bdrung opened this issue Dec 8, 2020 · 2 comments
Open

Please support scraping multiple sensors #14

bdrung opened this issue Dec 8, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@bdrung
Copy link

bdrung commented Dec 8, 2020

Hi, I own a Raspberry Pi 3 and have two BME280 connected via i2c. Please support scraping both with one instance. The parameter the exporter currently takes could be converted to labels.

Currently running bsbmp-exporter -address="0x76" -bus=1 -model="BME280" will produce metrics like

bsbmp_temperature_celcius 16.350000381469727

This could be changed to include the settings as labels:

bsbmp_temperature_celcius{address="0x76",bus="1",model="BME280"} 16.350000381469727
@David-Igou David-Igou added the enhancement New feature or request label Dec 8, 2020
@David-Igou
Copy link
Owner

Thanks, I didn't consider a scenario with >1 sensors on one pi - since these are atmospheric probes.. I thought I had read previously that the longest an i2c bus can be is ~1m but a quick google search reveals success has been had with up to 100m.

I am planning to improve the code in the collector within the next month or two, in that time I'll also implement labels.

@bdrung
Copy link
Author

bdrung commented Dec 8, 2020

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants