LowellObservatory / NightWatch

A system to display a set of important information at an observatory.
2 stars 0 forks source link

Suggestion to Leverage Existing Monitoring Tools #1

Closed astrobokonon closed 5 years ago

astrobokonon commented 5 years ago

Terminology (taken from a Google Analytics help page): Dashboards are a collection of widgets that give you an overview of the reports and metrics you care about most. Dashboards let you monitor many metrics at once, so you can quickly check the health of your accounts or see correlations between different reports.

Using Grafana and influxdb I've created a monitoring framework to display in one place all the things I need to care about as an instrument scientist, and it can probably be adapted for more general use. There are two main components: the database on the back end, and the user interface/plotting on the front end. Keeping these split in two is central to the whole idea, since that allows the backend database to be used for other stuff too.

Even if this specific interface (Grafana) doesn't work, the database portion (influxdb) is almost certainly usable

At present, all the data is collected from the broker thru a single python program ("Iago" in https://github.com/LowellObservatory/DataServants) and the connection to the broker is managed hands-free. The program runs in perpetuity and monitors its own connection, reconnecting when necessary.

I settled on these particular for the following reasons

Worth noting that the Mayall 4m is using basically the same setup for their engineering database purposes.

Some example screenshots - Instrument host computer health: image

DCT status and history: image

Instrument temperatures: image

dyerlytle commented 5 years ago

I've uploaded a simple demo of a couple of interactive plots running Django with Bokeh plots. The files are in the "_proto/bokeh-graphs directory.

astrobokonon commented 5 years ago

I think we're ok to close this by now since we're well on the way to having a working prototype.