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

pod_metrics.yml « prometheus « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b9395124405675798e8ca13950368e2350b6d46a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
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'

panel_groups:
- group: CPU metrics
  panels:
  - title: "CPU usage"
    type: "line-chart"
    y_label: "Cores per container"
    metrics:
    - id: pod_cpu_usage_seconds_total
      query_range: >-
        sum(
          rate(container_cpu_usage_seconds_total{pod="{{pod}}",container!="POD"}[5m])
        )
        by (container)
      unit: "cores"
      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

- group: Memory metrics
  panels:
  - title: "Memory usage working set"
    type: "line-chart"
    y_label: "Working set memory"
    metrics:
    - id: pod_memory_working_set
      query_range: >-
        sum(
          container_memory_working_set_bytes{pod="{{pod}}",container!="POD"}
        ) by (container)
      unit: "bytes"
      label: container

- group: Network metrics
  panels:
  - title: "Network Receive (In)"
    type: "line-chart"
    y_label: "Received (bytes/sec)"
    metrics:
    - id: pod_network_receive
      query_range: >-
        sum(
          rate(
            container_network_receive_bytes_total{pod="{{pod}}"}[5m]
          )
        ) by (pod)
      unit: "bytes"
      label: pod

  - title: "Network Transmit (Out)"
    type: "line-chart"
    y_label: "Transmitted (bytes/sec)"
    metrics:
    - id: pod_network_transmit
      query_range: >-
        sum(
          rate(
            container_network_transmit_bytes_total{pod="{{pod}}"}[5m]
          )
        ) by (pod)
      unit: bytes
      label: pod

- group: Disk metrics
  panels:
  - title: "Disk Reads"
    type: "line-chart"
    y_label: "Disk reads (bytes/sec)"
    metrics:
    - id: pod_disk_reads
      query_range: >-
        sum(
          rate(
            container_fs_reads_bytes_total{pod="{{pod}}", container!="POD"}[5m]
          )
        ) by (container,device)

      unit: "bytes / sec"
      label: "{{container}} {{device}}"

  - title: "Disk Writes"
    type: "line-chart"
    y_label: "Disk writes (bytes/sec)"
    metrics:
    - id: pod_disk_writes
      query_range: >-
        sum(
          rate(
            container_fs_writes_bytes_total{pod="{{pod}}", container!="POD"}[5m]
          )
        ) by (container,device)
      unit: "bytes / sec"
      label: "{{container}} {{device}}"