Metrics are pretty cheap, unless you have a ton of exporters I wouldn't worry too much about that. Plus it can come in handy: the ZFS exporter I wrote uses a CGO library that had a memory leak, which I discovered thanks…
Funny coincidence, yesterday I did almost the same thing, though mine's based on lm-sensors and hddtemp: https://github.com/ncabatoff/sensor-exporter
Hooray! Couldn't come at a better time for me, we're about to roll it out to all our customers and the API stability promises are great news. Many thanks to the authors for all their hard work, and congrats.
Whoops, by os.Sync() I meant *File.Sync() of course, aka fsync.
I like it, though I think it's likely to create a lot of garbage, what with spawning a goroutine on each Put, I suppose that's probably not an issue for most programs. I find defer pretty expensive, I don't use them…
Metrics are pretty cheap, unless you have a ton of exporters I wouldn't worry too much about that. Plus it can come in handy: the ZFS exporter I wrote uses a CGO library that had a memory leak, which I discovered thanks…
Funny coincidence, yesterday I did almost the same thing, though mine's based on lm-sensors and hddtemp: https://github.com/ncabatoff/sensor-exporter
Hooray! Couldn't come at a better time for me, we're about to roll it out to all our customers and the API stability promises are great news. Many thanks to the authors for all their hard work, and congrats.
Whoops, by os.Sync() I meant *File.Sync() of course, aka fsync.
I like it, though I think it's likely to create a lot of garbage, what with spawning a goroutine on each Put, I suppose that's probably not an issue for most programs. I find defer pretty expensive, I don't use them…