Had a glass of wine and spent a couple of hours prototyping a Prometheus Exporter for Particle.
The latter inspired me with this project. So, I scratched the itch and started to build an exporter for Particle:
The idea is that you configure the exporter with your particle access token and, when its
/metrics endpoint is requested, the code accesses your particle account, queries resources and build a list of Prometheus-friendly metrics.
The result can then be scraped by a Prometheus server, queried, graphed etc. etc.
The code is very basic and it currently only enumerates
/diagnostics and these are incomplete. I really wanted to see whether there is anything here.
I will flesh the code out tomorrow.
If folks are interested, please send feedback or PRs.