A simple idea to improve the monitoring could be to create an alarm on logged database metrics.
With Standard tiers Heroku periodically logs a line with the statuts of the DB, in this line you have a key named: sample#active-connections=N where N is the number of opened connections.
I think that with Papertrail (probably also other logging addons) you can set an alert on that string that sends the event every 10 minutes or 1 hour to your preferred destination (like a low key "metrics" channel on Slack).
Yeah, we use Timber and do this sort of stuff but at the moment we've mostly just configured alerts around relatively known issues. We have the tools but we need to step up and really configure these things to be more useful.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Glad you caught it!
A simple idea to improve the monitoring could be to create an alarm on logged database metrics.
With Standard tiers Heroku periodically logs a line with the statuts of the DB, in this line you have a key named:
sample#active-connections=N
where N is the number of opened connections.I think that with Papertrail (probably also other logging addons) you can set an alert on that string that sends the event every 10 minutes or 1 hour to your preferred destination (like a low key "metrics" channel on Slack).
I think I'm going to try it myself tomorrow :D
Yeah, we use Timber and do this sort of stuff but at the moment we've mostly just configured alerts around relatively known issues. We have the tools but we need to step up and really configure these things to be more useful.