diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-04 21:08:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-04 21:08:32 +0300 |
commit | 00ecf5debe240ed6d2aeed89b1f637ba6c418417 (patch) | |
tree | 16dd1727ab83d712b0947610a6e5568838174c9a /config/prometheus | |
parent | 953d26294b50d28621119eda9500b3aa98419f55 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/prometheus')
-rw-r--r-- | config/prometheus/self_monitoring_default.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/config/prometheus/self_monitoring_default.yml b/config/prometheus/self_monitoring_default.yml index dc2361fb3bc..53b47274ecd 100644 --- a/config/prometheus/self_monitoring_default.yml +++ b/config/prometheus/self_monitoring_default.yml @@ -1,6 +1,27 @@ dashboard: 'Default dashboard' priority: 1 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 or node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes + node_memory_Slab_bytes) / node_memory_MemTotal_bytes) * 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"}[5m]))) * 100' + unit: "%" + label: instance + - group: Web Service panels: - title: Web Service - Error Ratio |