bitly / statsdaemon

an implementation of Etsy's statsd in Go
The Unlicense
570 stars 131 forks source link

statsdaemon: add health monitoring #98

Closed OscarLuu closed 4 years ago

OscarLuu commented 4 years ago

This PR adds health monitoring checks to see if data has been pushed recently.

More specifically, it creates a heartbeat.monitor file if it does not exist and if it does exist it will touch the file to update last access time after data has been pushed.

This should be coupled with a Nagios alert or similar to check if the file has been touched recently meaning that data has been pushed.