diff options
author | Robert Speicher <rspeicher@gmail.com> | 2019-07-09 12:13:59 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2019-07-09 12:13:59 -0500 |
commit | d1c86dc985847035f987ef97fff07d44f6db0468 (patch) | |
tree | f3a7c6881179b567d9e2f6cef40c796d4dd190ff /config/prometheus/cluster_metrics.yml | |
parent | db04a18d7d8e77d52924e769044011824f7c6e3c (diff) | |
download | gitlab-ce-d1c86dc985847035f987ef97fff07d44f6db0468.tar.gz |
Copy EE-only config files to CErs-config-parity
These aren't used in CE, but it's safe to include them.
Diffstat (limited to 'config/prometheus/cluster_metrics.yml')
-rw-r--r-- | config/prometheus/cluster_metrics.yml | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/config/prometheus/cluster_metrics.yml b/config/prometheus/cluster_metrics.yml new file mode 100644 index 00000000000..3df76b0974f --- /dev/null +++ b/config/prometheus/cluster_metrics.yml @@ -0,0 +1,63 @@ +- group: Cluster Health + priority: 1 + metrics: + - title: "CPU Usage" + y_label: "CPU" + required_metrics: ['container_cpu_usage_seconds_total'] + weight: 1 + queries: + - query_range: 'avg(sum(rate(container_cpu_usage_seconds_total{id="/"}[15m])) by (job)) without (job)' + label: Usage + unit: "cores" + appearance: + line: + width: 2 + area: + opacity: 0 + - query_range: 'sum(kube_pod_container_resource_requests_cpu_cores{kubernetes_namespace="gitlab-managed-apps"})' + label: Requested + unit: "cores" + appearance: + line: + width: 2 + area: + opacity: 0 + - query_range: 'sum(kube_node_status_capacity_cpu_cores{kubernetes_namespace="gitlab-managed-apps"})' + label: Capacity + unit: "cores" + appearance: + line: + type: 'dashed' + width: 2 + area: + opacity: 0 + - title: "Memory usage" + y_label: "Memory" + required_metrics: ['container_memory_usage_bytes'] + weight: 1 + queries: + - query_range: 'avg(sum(container_memory_usage_bytes{id="/"}) by (job)) without (job) / 2^30' + label: Usage + unit: "GiB" + appearance: + line: + width: 2 + area: + opacity: 0 + - query_range: 'sum(kube_pod_container_resource_requests_memory_bytes{kubernetes_namespace="gitlab-managed-apps"})/2^30' + label: Requested + unit: "GiB" + appearance: + line: + width: 2 + area: + opacity: 0 + - query_range: 'sum(kube_node_status_capacity_memory_bytes{kubernetes_namespace="gitlab-managed-apps"})/2^30' + label: Capacity + unit: "GiB" + appearance: + line: + type: 'dashed' + width: 2 + area: + opacity: 0 |