Open powerman opened 2 months ago
The runit collector is deprecated. I'm not against merging a simple fix though if you want to take a stab at it
The runit collector is deprecated.
Is there any alternative/replacement for it?
Nobody has published a separate exporter that I know of yet. But we don't plan to do this work here.
What did you do that produced an error?
Check runit collector sources:
https://github.com/prometheus-community/go-runit/blob/master/runit/runit.go#L82-L99
What did you expect to see?
It should open FIFO file
ok
on write before trying to read filestatus
. This implements required check "isrunsv
supervisor running". Because ifrunsv
is not running then contents of it'sstatus
file is outdated and does not reflect actual service state.This can be fixed by adding this code:
The runit's
sv
tool does the same:What did you see instead?
File
ok
is not used by this collector at all.