-
Notifications
You must be signed in to change notification settings - Fork 245
/
Copy pathcgroup-rstat-flushing.yaml
103 lines (103 loc) · 2.9 KB
/
cgroup-rstat-flushing.yaml
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
metrics:
counters:
- name: cgroup_rstat_flush_total
help: Total number of times cgroup rstat were flushed (recorded per level)
labels:
- name: level
size: 4
decoders:
- name: uint
- name: cgroup_rstat_locked_total
help: Times rstat lock was obtainted with state for cgroup level, contended and yield
labels:
- name: contended
size: 1
decoders: # contended boolean converted to 0 and 1
- name: uint
- name: yield
size: 1
decoders: # was this a yielded lock case
- name: uint
- name: level
size: 2
decoders:
- name: uint
# --- See: CONFIG_TRACK_PER_CGROUP_FLUSH
# - name: cgroup_rstat_flush_nanoseconds_sum
# help: Sum amount of time (in nanoseconds) spent for flushes per cgroup
# labels:
# - name: cgroup
# size: 8
# decoders:
# - name: uint
# - name: cgroup
# - name: level
# size: 4
# decoders:
# - name: uint
# - name: cgroup_rstat_flush_nanoseconds_count
# help: Number of flush calls related to cgroup_rstat_flush_nanoseconds_sum
# labels:
# - name: cgroup
# size: 8
# decoders:
# - name: uint
# - name: cgroup
# - name: level
# size: 4
# decoders:
# - name: uint
# ---
- name: cgroup_rstat_map_errors_total
help: Map related errors
labels:
- name: type
size: 4
decoders:
- name: uint
- name: static_map
static_map:
0: unknown
1: no_memory
2: busy
3: already_exists
4: no_elem
5: timestamp_zero
histograms:
- name: cgroup_rstat_lock_wait_seconds
help: Latency histogram for lock contention associated wait time to obtain lock
bucket_type: exp2
bucket_min: 0
bucket_max: 24
bucket_multiplier: 0.0000001 # 0.1 microseconds to seconds
labels:
- name: bucket
size: 4
decoders:
- name: uint
- name: cgroup_rstat_lock_hold_seconds
help: Latency histogram for lock hold time
bucket_type: exp2
bucket_min: 0
bucket_max: 24
bucket_multiplier: 0.0000001 # 0.1 microseconds to seconds
labels:
- name: bucket
size: 4
decoders:
- name: uint
- name: cgroup_rstat_flush_latency_seconds
help: Latency histogram for flush time
bucket_type: exp2
bucket_min: 0
bucket_max: 24
bucket_multiplier: 0.0000001 # 0.1 microseconds to seconds
labels:
- name: level
size: 2
decoders:
- name: uint
- name: bucket
size: 2
decoders:
- name: uint