644 lines
20 KiB
YAML

apiVersion: 1
groups:
- orgId: 1
name: RAM
folder: rules
interval: 1m
rules:
# GNPROD
- uid: ram-used-gnprod
title: RAM used - GNPROD
condition: F
data:
- refId: A
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
exemplar: true
expr: (1 - (node_memory_MemAvailable_bytes{instance="gnprod"} / (node_memory_MemTotal_bytes{instance="gnprod"})))* 100
format: time_series
instant: false
interval: "1"
intervalFactor: 1
intervalMs: 5000
legendFormat: '{{instance}}'
maxDataPoints: 43200
refId: A
- refId: C
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- C
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: C
type: reduce
- refId: F
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- F
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: C
intervalMs: 1000
maxDataPoints: 43200
refId: F
type: threshold
dashboardUid: EbtmMBZSk
panelId: 29
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "29"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email
# ADVENTURE
- uid: ram-used-adventure
title: RAM used - ADVENTURE
condition: F
data:
- refId: A
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
exemplar: true
expr: (1 - (node_memory_MemAvailable_bytes{instance="adventure"} / (node_memory_MemTotal_bytes{instance="adventure"})))* 100
format: time_series
instant: false
interval: "1"
intervalFactor: 1
intervalMs: 5000
legendFormat: '{{instance}}'
maxDataPoints: 43200
refId: A
- refId: C
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- C
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: C
type: reduce
- refId: F
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- F
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: C
intervalMs: 1000
maxDataPoints: 43200
refId: F
type: threshold
dashboardUid: EbtmMBZSk
panelId: 29
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "29"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email
# PROD BACKUP
- uid: ram-used-prodbackup
title: RAM used - PROD-BACKUP
condition: F
data:
- refId: A
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
exemplar: true
expr: (1 - (node_memory_MemAvailable_bytes{instance="prod-backup"} / (node_memory_MemTotal_bytes{instance="prod-backup"})))* 100
format: time_series
instant: false
interval: "1"
intervalFactor: 1
intervalMs: 5000
legendFormat: '{{instance}}'
maxDataPoints: 43200
refId: A
- refId: C
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- C
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: C
type: reduce
- refId: F
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- F
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: C
intervalMs: 1000
maxDataPoints: 43200
refId: F
type: threshold
dashboardUid: EbtmMBZSk
panelId: 29
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "29"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email
# WEBHOSTING
- uid: ram-used-webhosting
title: RAM used - WEBHOSTING
condition: F
data:
- refId: A
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
exemplar: true
expr: (1 - (node_memory_MemAvailable_bytes{instance="cicd-server"} / (node_memory_MemTotal_bytes{instance="cicd-server"})))* 100
format: time_series
instant: false
interval: "1"
intervalFactor: 1
intervalMs: 5000
legendFormat: '{{instance}}'
maxDataPoints: 43200
refId: A
- refId: C
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- C
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: C
type: reduce
- refId: F
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- F
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: C
intervalMs: 1000
maxDataPoints: 43200
refId: F
type: threshold
dashboardUid: EbtmMBZSk
panelId: 29
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "29"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email
# PROD-2
- uid: ram-used-prod2
title: RAM used - PROD-2
condition: F
data:
- refId: A
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
exemplar: true
expr: (1 - (node_memory_MemAvailable_bytes{instance="prod-2"} / (node_memory_MemTotal_bytes{instance="prod-2"})))* 100
format: time_series
instant: false
interval: "1"
intervalFactor: 1
intervalMs: 5000
legendFormat: '{{instance}}'
maxDataPoints: 43200
refId: A
- refId: C
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- C
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: C
type: reduce
- refId: F
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- F
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: C
intervalMs: 1000
maxDataPoints: 43200
refId: F
type: threshold
dashboardUid: EbtmMBZSk
panelId: 29
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "29"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email
# PROD-3
- uid: ram-used-prod-3
title: RAM used - PROD-3 / ODOO
condition: F
data:
- refId: A
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
exemplar: true
expr: (1 - (node_memory_MemAvailable_bytes{instance="prod-3"} / (node_memory_MemTotal_bytes{instance="prod-3"})))* 100
format: time_series
instant: false
interval: "1"
intervalFactor: 1
intervalMs: 5000
legendFormat: '{{instance}}'
maxDataPoints: 43200
refId: A
- refId: C
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- C
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: C
type: reduce
- refId: F
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- F
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: C
intervalMs: 1000
maxDataPoints: 43200
refId: F
type: threshold
dashboardUid: EbtmMBZSk
panelId: 29
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "29"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email
# GARAGE-AI
- uid: ram-used-garage-ai
title: RAM used - GARAGE-AI
condition: F
data:
- refId: A
relativeTimeRange:
from: 86400
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
exemplar: true
expr: (1 - (node_memory_MemAvailable_bytes{instance="garage-ai"} / (node_memory_MemTotal_bytes{instance="garage-ai"})))* 100
format: time_series
instant: false
interval: "1"
intervalFactor: 1
intervalMs: 5000
legendFormat: '{{instance}}'
maxDataPoints: 43200
refId: A
- refId: C
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- C
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: C
type: reduce
- refId: F
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 80
type: gt
operator:
type: and
query:
params:
- F
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: C
intervalMs: 1000
maxDataPoints: 43200
refId: F
type: threshold
dashboardUid: EbtmMBZSk
panelId: 29
noDataState: NoData
execErrState: Error
for: 1m
annotations:
__dashboardUid__: EbtmMBZSk
__panelId__: "29"
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false
notification_settings:
receiver: garagenum-email