Lower case binary operators and fix indentation.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
pull/941/head
Tom Wilkie 7 years ago committed by Matthias Loibl
parent bafe1707f1
commit 9303cf78ff
No known key found for this signature in database
GPG Key ID: B1C7DF661ABB2C1A

@ -7,11 +7,11 @@
{ {
alert: 'NodeFilesystemSpaceFillingUp', alert: 'NodeFilesystemSpaceFillingUp',
expr: ||| expr: |||
predict_linear(node_filesystem_avail{%(nodeExporterSelector)s,%(fsSelectors)s}[6h], 24*60*60) < 0 predict_linear(node_filesystem_avail{%(nodeExporterSelector)s,%(fsSelectors)s}[6h], 24*60*60) < 0
AND and
node_filesystem_avail{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_size{%(nodeExporterSelector)s,%(fsSelectors)s} < 0.4 node_filesystem_avail{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_size{%(nodeExporterSelector)s,%(fsSelectors)s} < 0.4
AND and
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0
||| % $._config, ||| % $._config,
'for': '1h', 'for': '1h',
labels: { labels: {
@ -24,11 +24,11 @@
{ {
alert: 'NodeFilesystemSpaceFillingUp', alert: 'NodeFilesystemSpaceFillingUp',
expr: ||| expr: |||
predict_linear(node_filesystem_avail{%(nodeExporterSelector)s,%(fsSelectors)s}[6h], 4*60*60) < 0 predict_linear(node_filesystem_avail{%(nodeExporterSelector)s,%(fsSelectors)s}[6h], 4*60*60) < 0
AND and
node_filesystem_avail{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_size{%(nodeExporterSelector)s,%(fsSelectors)s} < 0.2 node_filesystem_avail{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_size{%(nodeExporterSelector)s,%(fsSelectors)s} < 0.2
AND and
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0
||| % $._config, ||| % $._config,
'for': '1h', 'for': '1h',
labels: { labels: {
@ -41,9 +41,9 @@
{ {
alert: 'NodeFilesystemOutOfSpace', alert: 'NodeFilesystemOutOfSpace',
expr: ||| expr: |||
node_filesystem_avail{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_size{%(nodeExporterSelector)s,%(fsSelectors)s} * 100 < 5 node_filesystem_avail{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_size{%(nodeExporterSelector)s,%(fsSelectors)s} * 100 < 5
AND and
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0
||| % $._config, ||| % $._config,
'for': '1h', 'for': '1h',
labels: { labels: {
@ -56,9 +56,9 @@
{ {
alert: 'NodeFilesystemOutOfSpace', alert: 'NodeFilesystemOutOfSpace',
expr: ||| expr: |||
node_filesystem_avail{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_size{%(nodeExporterSelector)s,%(fsSelectors)s} * 100 < 3 node_filesystem_avail{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_size{%(nodeExporterSelector)s,%(fsSelectors)s} * 100 < 3
AND and
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0
||| % $._config, ||| % $._config,
'for': '1h', 'for': '1h',
labels: { labels: {
@ -71,11 +71,11 @@
{ {
alert: 'NodeFilesystemFilesFillingUp', alert: 'NodeFilesystemFilesFillingUp',
expr: ||| expr: |||
predict_linear(node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelectors)s}[6h], 24*60*60) < 0 predict_linear(node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelectors)s}[6h], 24*60*60) < 0
AND and
node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelectors)s} < 0.4 node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelectors)s} < 0.4
AND and
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0
||| % $._config, ||| % $._config,
'for': '1h', 'for': '1h',
labels: { labels: {
@ -88,11 +88,11 @@
{ {
alert: 'NodeFilesystemFilesFillingUp', alert: 'NodeFilesystemFilesFillingUp',
expr: ||| expr: |||
predict_linear(node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelectors)s}[6h], 4*60*60) < 0 predict_linear(node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelectors)s}[6h], 4*60*60) < 0
AND and
node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelectors)s} < 0.2 node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelectors)s} < 0.2
AND and
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0
||| % $._config, ||| % $._config,
'for': '1h', 'for': '1h',
labels: { labels: {
@ -105,9 +105,9 @@
{ {
alert: 'NodeFilesystemOutOfFiles', alert: 'NodeFilesystemOutOfFiles',
expr: ||| expr: |||
node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelectors)s} * 100 < 5 node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelectors)s} * 100 < 5
AND and
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0
||| % $._config, ||| % $._config,
'for': '1h', 'for': '1h',
labels: { labels: {
@ -120,9 +120,9 @@
{ {
alert: 'NodeFilesystemOutOfSpace', alert: 'NodeFilesystemOutOfSpace',
expr: ||| expr: |||
node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelectors)s} * 100 < 3 node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelectors)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelectors)s} * 100 < 3
AND and
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelectors)s} == 0
||| % $._config, ||| % $._config,
'for': '1h', 'for': '1h',
labels: { labels: {

Loading…
Cancel
Save