debian-mirror-gitlab/config/prometheus/cluster_metrics.yml

64 lines
1.8 KiB
YAML
Raw Normal View History

2019-09-30 21:07:59 +05:30
- group: Cluster Health
priority: 1
metrics:
- title: "CPU Usage"
2019-10-12 21:52:04 +05:30
y_label: "CPU (cores)"
2019-09-30 21:07:59 +05:30
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)'
2019-10-12 21:52:04 +05:30
label: Usage (cores)
2019-09-30 21:07:59 +05:30
unit: "cores"
appearance:
line:
width: 2
area:
opacity: 0
- query_range: 'sum(kube_pod_container_resource_requests_cpu_cores{kubernetes_namespace="gitlab-managed-apps"})'
2019-10-12 21:52:04 +05:30
label: Requested (cores)
2019-09-30 21:07:59 +05:30
unit: "cores"
appearance:
line:
width: 2
area:
opacity: 0
- query_range: 'sum(kube_node_status_capacity_cpu_cores{kubernetes_namespace="gitlab-managed-apps"})'
2019-10-12 21:52:04 +05:30
label: Capacity (cores)
2019-09-30 21:07:59 +05:30
unit: "cores"
appearance:
line:
type: 'dashed'
width: 2
area:
opacity: 0
- title: "Memory usage"
2019-10-12 21:52:04 +05:30
y_label: "Memory (GiB)"
2019-09-30 21:07:59 +05:30
required_metrics: ['container_memory_usage_bytes']
weight: 1
queries:
- query_range: 'avg(sum(container_memory_usage_bytes{id="/"}) by (job)) without (job) / 2^30'
2019-10-12 21:52:04 +05:30
label: Usage (GiB)
2019-09-30 21:07:59 +05:30
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'
2019-10-12 21:52:04 +05:30
label: Requested (GiB)
2019-09-30 21:07:59 +05:30
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'
2019-10-12 21:52:04 +05:30
label: Capacity (GiB)
2019-09-30 21:07:59 +05:30
unit: "GiB"
appearance:
line:
type: 'dashed'
width: 2
area:
opacity: 0