msiebuhr / esp8266-promstuff

Logging temperatures with an ESP8266, DS18B20 thermometers, Prometheus and mDNS discovery sauce
6 stars 2 forks source link

Expose default metrics #2

Closed msiebuhr closed 7 years ago

msiebuhr commented 7 years ago

https://prometheus.io/docs/instrumenting/writing_clientlibs/#standard-and-runtime-collectors

In particular uptime_ms -> process_start_time_seconds.

Perhaps we can also find some way of calculating process_heap_bytes from heap_free_b.

msiebuhr commented 7 years ago

process_start_time_seconds is since UNIX epoch - and to do that I'd need to run NTP. Then I'd rather not.