Paul Cuzner [Thu, 22 Jun 2017 21:16:08 +0000 (09:16 +1200)]
add home dashboard support
this change adds a _home_dashboard setting such that the grafana home dashboard
for the admin user can be changed to be the ceph-at-a-glance dashboard.
Paul Cuzner [Thu, 22 Jun 2017 02:53:57 +0000 (14:53 +1200)]
at-a-glance: fix for health panel, and colour match with status panel
The singlestat panel was using value map, but singlestat appears to be interpolating
the health value which results in the value map not being used and a number appearing
on the dashboard. This update uses a range map to handle/workaround this nuance.
In addition, cosmetic changes to the health, disk and latency panels - making their warning
colour state match the status panel warning colour for consistency
Paul Cuzner [Tue, 20 Jun 2017 04:16:52 +0000 (16:16 +1200)]
dashboards updated to account for null missing values
Prior to this change the charts had "Display/Null Value" set as null - but in
an environment where observations/metrics are arriving late or miss, the
resulting chart would be part populated at best, at worst blank with only
hover only providing an indication that data points are present.
Ideally the data should be present - but by setting as connected, null values
will not stop the graphs from being rendered.
Paul Cuzner [Mon, 19 Jun 2017 20:47:25 +0000 (08:47 +1200)]
at-a-glance : health history chart updated
The health history query lead to interpolation of health values, so you'd see 1,2 or 3's due to averaging. This
change updates the query to use consolidateBy function which should keep the values as intended - 0,4,8
representing OK, WARN, ERROR
INSTALL instructions updated since this chart problem was listed as a Known Issue
Paul Cuzner [Mon, 19 Jun 2017 04:10:09 +0000 (16:10 +1200)]
added osd-state information
The mon collector now includes the status of osd's in it's output
(where 0 = up, 1 = down). To use this additional info, the at-a-glance
and backend-storage dashboards have been updated.
at-a-glance now includes a link from the OSD's 'down' value to the
backend storage dashboard
backend-storage dashboard includes an osd down table - which basically
shows osd's with a status of > 0
Paul Cuzner [Sun, 18 Jun 2017 22:08:23 +0000 (10:08 +1200)]
dashUpdater - refactoring and startup options added
Multiple changes
- refactored code
- added argparse to provide runtime options
- adding logging module to provide more debug information
- added checks to confirm grafana port is available before attempting to fetch dashboards
- issue a return code back to the calling shell