Netflix-Skunkworks / spectatord

A high performance metrics daemon
Apache License 2.0
24 stars 5 forks source link

do not abort when disabled #40

Closed copperlight closed 3 years ago

copperlight commented 3 years ago

If an instance had a disabled file defined, then spectatord would never send metrics, which would cause it to abort every minute and fill up available disk space with core files.

This change considers whether or not spectatord is enabled when checking the last time since it was able to send metrics successfully.

Added a trace log for the condition where we skip sending metrics, to make it more obvious what is happening when verbose logging is enabled.