graphs: Better disk name matching
For some reason, docker devices are collected in collectd stats (despite us collecting only ext4 and btrfs devices). They have the patter *docker*. Fixes #222
This commit is contained in:
@@ -105,10 +105,13 @@ angular.module('Application').controller('GraphsController', ['$scope', '$locati
|
||||
};
|
||||
|
||||
$scope.updateDiskGraphs = function () {
|
||||
// https://graphite.readthedocs.io/en/latest/render_api.html#paths-and-wildcards
|
||||
// on scaleway, for some reason docker devices are collected as part of collectd
|
||||
// until we figure why just hardcode popular disk devices - https://www.mjmwired.net/kernel/Documentation/devices.txt
|
||||
Client.graphs([
|
||||
'averageSeries(collectd.localhost.df-*d*.df_complex-free)',
|
||||
'averageSeries(collectd.localhost.df-*d*.df_complex-reserved)',
|
||||
'averageSeries(collectd.localhost.df-*d*.df_complex-used)'
|
||||
'averageSeries(collectd.localhost.df-{sd,hd,vd,md,ad,nb,vd,ub,xvd}*.df_complex-free)',
|
||||
'averageSeries(collectd.localhost.df-{sd,hd,vd,md,ad,nb,vd,ub,xvd}*.df_complex-reserved)',
|
||||
'averageSeries(collectd.localhost.df-{sd,hd,vd,md,ad,nb,vd,ub,xvd}*.df_complex-used)'
|
||||
], '-1min', function (error, data) {
|
||||
if (error) return console.log(error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user