701 lines
23 KiB
YAML

apiVersion: 1
groups:
- orgId: 1
name: DISK
folder: rules
interval: 1m
rules:
# GNPROD
- uid: disk-used-gnprod
title: DISK used - GNPROD
condition: G
data:
- refId: A
queryType: randomWalk
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
editorMode: code
exemplar: true
expr: (node_filesystem_size_bytes{instance=~'gnprod',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}-node_filesystem_free_bytes{instance=~'gnprod',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}) *100/(node_filesystem_avail_bytes {instance=~'gnprod',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}+(node_filesystem_size_bytes{instance=~'gnprod',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}-node_filesystem_free_bytes{instance=~'gnprod',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}))
instant: false
interval: 5s
intervalMs: 5000
legendFormat: gnprod
maxDataPoints: 43200
queryType: randomWalk
range: false
refId: A
- refId: D
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- D
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: D
type: reduce
- refId: G
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- G
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: D
intervalMs: 1000
maxDataPoints: 43200
refId: G
type: threshold
dashboardUid: EbtmMBZSk
panelId: 31
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "31"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email
# ADVENTURE
- uid: disk-used-adventure
title: DISK used - ADVENTURE
condition: G
data:
- refId: A
queryType: randomWalk
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
editorMode: code
exemplar: true
expr: (node_filesystem_size_bytes{instance=~'adventure',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}-node_filesystem_free_bytes{instance=~'adventure',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}) *100/(node_filesystem_avail_bytes {instance=~'adventure',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}+(node_filesystem_size_bytes{instance=~'adventure',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}-node_filesystem_free_bytes{instance=~'adventure',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}))
instant: false
interval: 5s
intervalMs: 5000
legendFormat: gnprod
maxDataPoints: 43200
queryType: randomWalk
range: false
refId: A
- refId: D
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- D
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: D
type: reduce
- refId: G
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- G
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: D
intervalMs: 1000
maxDataPoints: 43200
refId: G
type: threshold
dashboardUid: EbtmMBZSk
panelId: 31
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "31"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email
# PROD-BACKUP
- uid: disk-used-prodbackup
title: DISK used - PROD-BACKUP
condition: G
data:
- refId: A
queryType: randomWalk
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
editorMode: code
exemplar: true
expr: ((1 - (node_filesystem_free_bytes{instance=~"prod-backup", fstype=~"ext.*|xfs", mountpoint="/home/garage/BACKUP"} / node_filesystem_size_bytes{instance=~"prod-backup", fstype=~"ext.*|xfs", mountpoint="/home/garage/BACKUP"})) * 100)
instant: false
interval: 5s
intervalMs: 5000
legendFormat: gnprod
maxDataPoints: 43200
queryType: randomWalk
range: false
refId: A
- refId: D
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- D
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: D
type: reduce
- refId: G
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- G
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: D
intervalMs: 1000
maxDataPoints: 43200
refId: G
type: threshold
dashboardUid: EbtmMBZSk
panelId: 31
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "31"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email
# WEBHOSTING
- uid: disk-used-webhosting
title: DISK used - WEBHOSTING
condition: G
data:
- refId: A
queryType: randomWalk
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
editorMode: code
exemplar: true
expr: (node_filesystem_size_bytes{instance=~'cicd-server',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}-node_filesystem_free_bytes{instance=~'cicd-server',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}) *100/(node_filesystem_avail_bytes {instance=~'cicd-server',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}+(node_filesystem_size_bytes{instance=~'cicd-server',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}-node_filesystem_free_bytes{instance=~'cicd-server',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}))
instant: false
interval: 5s
intervalMs: 5000
legendFormat: gnprod
maxDataPoints: 43200
queryType: randomWalk
range: false
refId: A
- refId: D
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- D
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: D
type: reduce
- refId: G
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- G
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: D
intervalMs: 1000
maxDataPoints: 43200
refId: G
type: threshold
dashboardUid: EbtmMBZSk
panelId: 31
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "31"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email
# PROD-2
- uid: disk-used-prod-2
title: DISK used - PROD-2
condition: G
data:
- refId: A
queryType: randomWalk
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
editorMode: code
exemplar: true
expr: (node_filesystem_size_bytes{instance=~'prod-2',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}-node_filesystem_free_bytes{instance=~'prod-2',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}) *100/(node_filesystem_avail_bytes {instance=~'prod-2',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}+(node_filesystem_size_bytes{instance=~'prod-2',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}-node_filesystem_free_bytes{instance=~'prod-2',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}))
instant: false
interval: 5s
intervalMs: 5000
legendFormat: gnprod
maxDataPoints: 43200
queryType: randomWalk
range: false
refId: A
- refId: D
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- D
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: D
type: reduce
- refId: G
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- G
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: D
intervalMs: 1000
maxDataPoints: 43200
refId: G
type: threshold
dashboardUid: EbtmMBZSk
panelId: 31
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "31"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email
# PROD-3 / ODOO
- uid: disk-used-prod-3
title: DISK used - PROD-3
condition: G
data:
- refId: A
queryType: randomWalk
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
editorMode: code
exemplar: true
expr: (node_filesystem_size_bytes{instance=~'prod-3',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}-node_filesystem_free_bytes{instance=~'prod-3',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}) *100/(node_filesystem_avail_bytes {instance=~'prod-3',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}+(node_filesystem_size_bytes{instance=~'prod-3',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}-node_filesystem_free_bytes{instance=~'prod-3',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}))
instant: false
interval: 5s
intervalMs: 5000
legendFormat: gnprod
maxDataPoints: 43200
queryType: randomWalk
range: false
refId: A
- refId: D
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- D
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: D
type: reduce
- refId: G
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- G
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: D
intervalMs: 1000
maxDataPoints: 43200
refId: G
type: threshold
dashboardUid: EbtmMBZSk
panelId: 31
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "31"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email
# GARAGE-AI
- uid: disk-used-garage-ai
title: DISK used - GARAGE-AI
condition: G
data:
- refId: A
queryType: randomWalk
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
editorMode: code
exemplar: true
expr: (node_filesystem_size_bytes{instance=~'garage-ai',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}-node_filesystem_free_bytes{instance=~'garage-ai',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}) *100/(node_filesystem_avail_bytes {instance=~'garage-ai',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}+(node_filesystem_size_bytes{instance=~'garage-ai',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}-node_filesystem_free_bytes{instance=~'garage-ai',fstype=~"ext.*|xfs",mountpoint !~".*pod.*"}))
instant: false
interval: 5s
intervalMs: 5000
legendFormat: gnprod
maxDataPoints: 43200
queryType: randomWalk
range: false
refId: A
- refId: D
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- D
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: D
type: reduce
- refId: G
relativeTimeRange:
from: 86400
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- G
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: D
intervalMs: 1000
maxDataPoints: 43200
refId: G
type: threshold
dashboardUid: EbtmMBZSk
panelId: 31
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "31"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email