Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/prometheus/self_monitoring_default.yml')
-rw-r--r--config/prometheus/self_monitoring_default.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/config/prometheus/self_monitoring_default.yml b/config/prometheus/self_monitoring_default.yml
index dc2361fb3bc..50e6f4585e4 100644
--- a/config/prometheus/self_monitoring_default.yml
+++ b/config/prometheus/self_monitoring_default.yml
@@ -1,6 +1,36 @@
dashboard: 'Default dashboard'
priority: 1
+
+templating:
+ variables:
+ instance:
+ type: 'text'
+ label: 'Instance label regex'
+ options:
+ default_value: '.+'
+
panel_groups:
+
+- group: 'Resource usage'
+ panels:
+ - title: "Memory usage"
+ type: "line-chart"
+ y_label: "% memory used"
+ metrics:
+ - id: node_memory_usage_percentage
+ query_range: '(1 - (node_memory_MemAvailable_bytes{instance=~"{{instance}}"} or (node_memory_MemFree_bytes{instance=~"{{instance}}"} + node_memory_Buffers_bytes{instance=~"{{instance}}"} + node_memory_Cached_bytes{instance=~"{{instance}}"} + node_memory_Slab_bytes{instance=~"{{instance}}"})) / node_memory_MemTotal_bytes{instance=~"{{instance}}"}) * 100'
+ unit: "%"
+ label: instance
+
+ - title: "CPU usage"
+ type: "line-chart"
+ y_label: "% CPU used"
+ metrics:
+ - id: node_cpu_usage_percentage
+ query_range: '(avg without (mode,cpu) (1 - irate(node_cpu_seconds_total{mode="idle",instance=~"{{instance}}"}[5m]))) * 100'
+ unit: "%"
+ label: instance
+
- group: Web Service
panels:
- title: Web Service - Error Ratio