Make more use of config.libsonnet

Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
beorn7 2019-07-16 19:34:27 +02:00
commit 3ab1f41d12
3 changed files with 14 additions and 9 deletions

View file

@ -1,11 +1,16 @@
{
_config+:: {
// Selectors are inserted between {} in Prometheus queries.
// Select the metrics coming from the node exporter.
nodeExporterSelector: 'job="node-exporter"',
// Mainly extracted because they are repetitive, but also useful to customize.
// Select the fstype for filesystem-related queries.
fsSelector: 'fstype=~"ext.|xfs",mountpoint!="/var/lib/docker/aufs"',
// Select the device for disk-related queries.
diskDeviceSelector: 'device=~"(sd|xvd).+"',
grafana_prefix: '',
},
}