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

116 lines
2.7 KiB
YAML
Raw Normal View History

2020-10-24 23:57:45 +05:30
dashboard: 'K8s pod health'
priority: 2
templating:
variables:
pod:
label: 'Pod name'
type: metric_label_values
options:
series_selector: 'container_memory_working_set_bytes'
label: 'pod'
2020-01-01 13:55:28 +05:30
panel_groups:
- group: CPU metrics
panels:
- title: "CPU usage"
type: "line-chart"
2020-10-24 23:57:45 +05:30
y_label: "Cores per container"
2020-01-01 13:55:28 +05:30
metrics:
- id: pod_cpu_usage_seconds_total
2020-10-24 23:57:45 +05:30
query_range: >-
sum(
rate(container_cpu_usage_seconds_total{pod="{{pod}}",container!="POD"}[5m])
)
by (container)
2020-01-01 13:55:28 +05:30
unit: "cores"
2020-10-24 23:57:45 +05:30
label: container
- title: "CPU throttling"
type: "line-chart"
y_label: "Cores per container"
metrics:
- id: pod_cpu_cfs_throttle
query_range: >-
sum(
rate(container_cpu_cfs_throttled_seconds_total{pod="{{pod}}"}[5m])
)
by (container)
unit: "cores"
label: container
2020-01-01 13:55:28 +05:30
- group: Memory metrics
panels:
- title: "Memory usage working set"
type: "line-chart"
2020-10-24 23:57:45 +05:30
y_label: "Working set memory"
2020-01-01 13:55:28 +05:30
metrics:
- id: pod_memory_working_set
2020-10-24 23:57:45 +05:30
query_range: >-
sum(
container_memory_working_set_bytes{pod="{{pod}}",container!="POD"}
) by (container)
unit: "bytes"
label: container
2020-01-01 13:55:28 +05:30
- group: Network metrics
panels:
- title: "Network Receive (In)"
type: "line-chart"
2020-10-24 23:57:45 +05:30
y_label: "Received (bytes/sec)"
2020-01-01 13:55:28 +05:30
metrics:
- id: pod_network_receive
2020-10-24 23:57:45 +05:30
query_range: >-
sum(
rate(
container_network_receive_bytes_total{pod="{{pod}}"}[5m]
)
) by (pod)
unit: "bytes"
label: pod
2020-01-01 13:55:28 +05:30
- title: "Network Transmit (Out)"
type: "line-chart"
2020-10-24 23:57:45 +05:30
y_label: "Transmitted (bytes/sec)"
2020-01-01 13:55:28 +05:30
metrics:
- id: pod_network_transmit
2020-10-24 23:57:45 +05:30
query_range: >-
sum(
rate(
container_network_transmit_bytes_total{pod="{{pod}}"}[5m]
)
) by (pod)
unit: bytes
label: pod
2020-01-01 13:55:28 +05:30
- group: Disk metrics
panels:
- title: "Disk Reads"
type: "line-chart"
2020-10-24 23:57:45 +05:30
y_label: "Disk reads (bytes/sec)"
2020-01-01 13:55:28 +05:30
metrics:
- id: pod_disk_reads
2020-10-24 23:57:45 +05:30
query_range: >-
sum(
rate(
container_fs_reads_bytes_total{pod="{{pod}}", container!="POD"}[5m]
)
) by (container,device)
unit: "bytes / sec"
label: "{{container}} {{device}}"
2020-01-01 13:55:28 +05:30
- title: "Disk Writes"
type: "line-chart"
2020-10-24 23:57:45 +05:30
y_label: "Disk writes (bytes/sec)"
2020-01-01 13:55:28 +05:30
metrics:
- id: pod_disk_writes
2020-10-24 23:57:45 +05:30
query_range: >-
sum(
rate(
container_fs_writes_bytes_total{pod="{{pod}}", container!="POD"}[5m]
)
) by (container,device)
unit: "bytes / sec"
label: "{{container}} {{device}}"