2 ms·
> Mine is much more primitive. My indoor temperature monitor is an ESP8266 that uploads the temperature to a simple PHP page that saves it in an sqlite DB. Not
by outworlder 5y ago
> Mine is much more primitive. My indoor temperature monitor is an ESP8266 that uploads the temperature to a simple PHP page that saves it in an sqlite DB.
Nothing wrong with 'simple'. Although you are kinda reimplementing the wheel in some of the setup.
If you don't have an use for the whole Prometheus shebang (it's a great piece of software, but might be overkill, and you probably don't need Cortex), you can upload stuff to Graphite. Installation is simple. Sending data is just a netcat away, can't really get simpler than that. Bonus points is that you don't have to maintain (or create) the PHP page. Or maintain a database schema for any new metrics you come up with.
Send what amounts to a string with your metrics to Graphite, and then you can connect Grafana to it and quickly build all sorts of graphs, even alerts.
Now that you have built it, it makes no sense to replace. If you ever find you need different metrics, different graphs, queries, alerting, a dashboard or what have you, take a look at that. It's the simplest solution I've found.
Like their examples show:
echo "foo.bar 1 `date +%s`" | nc localhost 2003
Essentially, the format is: <metric name> <metric> <timestamp>
Send that to the listening port and you are done.