mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-22 08:26:07 +01:00
Fix multiline strings
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
This commit is contained in:
parent
bd648827fe
commit
ff0a13d900
@ -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: {
|
||||||
|
@ -60,9 +60,9 @@ local gauge = promgrafonnet.gauge;
|
|||||||
local memoryGauge = gauge.new(
|
local memoryGauge = gauge.new(
|
||||||
'Memory Usage',
|
'Memory Usage',
|
||||||
|||
|
|||
|
||||||
node_memory_MemAvailable{%(nodeExporterSelector)s, instance="$instance"}
|
node_memory_MemAvailable{%(nodeExporterSelector)s, instance="$instance"}
|
||||||
/
|
/
|
||||||
node_memory_MemTotal{%(nodeExporterSelector)s, instance="$instance"}
|
node_memory_MemTotal{%(nodeExporterSelector)s, instance="$instance"}
|
||||||
||| % $._config,
|
||| % $._config,
|
||||||
).withLowerBeingBetter();
|
).withLowerBeingBetter();
|
||||||
|
|
||||||
|
@ -29,9 +29,9 @@
|
|||||||
// Can go over 100%. >100% is bad.
|
// Can go over 100%. >100% is bad.
|
||||||
record: 'instance:node_cpu_saturation_load1:',
|
record: 'instance:node_cpu_saturation_load1:',
|
||||||
expr: |||
|
expr: |||
|
||||||
sum by (instance) (node_load1{%(nodeExporterSelector)s})
|
sum by (instance) (node_load1{%(nodeExporterSelector)s})
|
||||||
/
|
/
|
||||||
instance:node_num_cpu:sum
|
instance:node_num_cpu:sum
|
||||||
||| % $._config,
|
||| % $._config,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -52,7 +52,7 @@
|
|||||||
/
|
/
|
||||||
node_memory_MemTotal{%(nodeExporterSelector)s}
|
node_memory_MemTotal{%(nodeExporterSelector)s}
|
||||||
)
|
)
|
||||||
|||,
|
||| % $._config,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
record: 'instance:node_memory_swap_io_bytes:sum_rate',
|
record: 'instance:node_memory_swap_io_bytes:sum_rate',
|
||||||
|
Loading…
Reference in New Issue
Block a user