horsemeat / dublin-bus-tracker

Simple app to show the next Dublin Bus on a dashboard.
GNU Affero General Public License v3.0
1 stars 3 forks source link

Deploy basic monitoring #17

Open lupino3 opened 9 years ago

lupino3 commented 9 years ago

We'll need a way to inspect how the server is behaving, if it's running, etc..

lupino3 commented 9 years ago

Done. I set up PM2 and PMX, and they talk to keymetrics.io. We have only 2 custom metrics, we can add more in the future.

tabman83 commented 9 years ago

How are connected clients measured? Is that a total aggregate count? We may consider adding more meaningful metrics as connections per hour and max connections per hour and/or anything else like that just in order to be able to understand any scalability issue should we decide to go public.

I will not reopen this until @lupino3 specifically or anyone else decides this is worth of further investigation.

lupino3 commented 9 years ago

It is an instantaneous value; I'd hoped to do aggregation directly in keymetrics.io (or at least see a plot of how this changes over time) but it doesn't appear to be possible. I wrote to them to see if there is a way of doing it, otherwise we might need to change monitoring system.

I agree that we need more insightful metrics; this issue was mostly about setting up monitoring and having a way to define our own metrics.

lupino3 commented 9 years ago

I would really like to use prometheus for monitoring (https://github.com/prometheus/prometheus), but I don't think there is an easy way to deploy it to openshift. I am looking around. :)