Skip to content

Prometheus Exporter for iqAir AirVisual air quality monitors

License

Notifications You must be signed in to change notification settings

Packetslave/iqair_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iqair_exporter

This is a Prometheus exporter to collect air quality data from iqAir AirVisual air quality monitors.

It has been tested with the iqAir Air Visual Pro

Building

go mod tidy
go build .

Usage

Get the API URL for your device from the AirVisual portal.

  1. go to your dashboard
  2. click Devices
  3. click the vertical dots next to the device you want to monitor
  4. click the API tab
  5. copy the URL next to "Device API Link". It should be something like https://www.airvisual.com/api/v2/node/<hex string>

Now run the exporter:

./iqair_exporter --iqair.scrape-uri=$API_URL

Or with Docker:

TODO

By default, the exporter listens on port 9861 and exports metrics on /metrics

Scrape Config

TODO

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Prometheus Exporter for iqAir AirVisual air quality monitors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages