cern-eos / eos_exporter

3 stars 4 forks source link

Do not panic when getting metrics and add custom timeout #34

Closed labkode closed 9 months ago

labkode commented 9 months ago

Fixes #33

This PR adds:

How to test?

/var/tmp/eos_exporter -eos-instance eoshomedev -listen-address localhost:9999 -timeout 1
2024/02/22 09:29:58 Starting eos exporter for instance eoshomedev
&{0xc0001665a0}&{0xc000166660}&{0xc000166720}&{0xc0001667e0}&{0xc000166900}2024/02/22 09:29:58 Listening on localhost:9999
....
2024/02/22 09:30:03 failed collecting node metrics: signal: killed
....