diff options
author | domchan <31119455+domgoer@users.noreply.github.com> | 2020-07-18 00:32:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-17 18:32:23 +0200 |
commit | 503e4fc8486c0082d6bd8c53fad646bcfafeedf6 (patch) | |
tree | 51cf53ed86b640630b69d9c45719592b71686bd8 /collector/fixtures/e2e-64k-page-output.txt | |
parent | f4b89c79a25fa10a397075b8bc3dd09314438fa2 (diff) | |
download | prometheus_node_collector-503e4fc8486c0082d6bd8c53fad646bcfafeedf6.tar.bz2 prometheus_node_collector-503e4fc8486c0082d6bd8c53fad646bcfafeedf6.tar.xz prometheus_node_collector-503e4fc8486c0082d6bd8c53fad646bcfafeedf6.zip |
Expose cpu bugs and flags as info metrics. (#1788)
* Expose cpu bugs and flags as info metrics with a regexp filter.
* Automatically enable CPU info metrics when using flags or bugs feature.
Signed-off-by: domgoer <domdoumc@gmail.com>
Diffstat (limited to 'collector/fixtures/e2e-64k-page-output.txt')
-rw-r--r-- | collector/fixtures/e2e-64k-page-output.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/collector/fixtures/e2e-64k-page-output.txt b/collector/fixtures/e2e-64k-page-output.txt index 7b857ff..cbed127 100644 --- a/collector/fixtures/e2e-64k-page-output.txt +++ b/collector/fixtures/e2e-64k-page-output.txt | |||
@@ -184,12 +184,24 @@ node_cooling_device_cur_state{name="0",type="Processor"} 0 | |||
184 | # HELP node_cooling_device_max_state Maximum throttle state of the cooling device | 184 | # HELP node_cooling_device_max_state Maximum throttle state of the cooling device |
185 | # TYPE node_cooling_device_max_state gauge | 185 | # TYPE node_cooling_device_max_state gauge |
186 | node_cooling_device_max_state{name="0",type="Processor"} 3 | 186 | node_cooling_device_max_state{name="0",type="Processor"} 3 |
187 | # HELP node_cpu_bug_info The `bugs` field of CPU information from /proc/cpuinfo. | ||
188 | # TYPE node_cpu_bug_info gauge | ||
189 | node_cpu_bug_info{bug="cpu_meltdown"} 1 | ||
190 | node_cpu_bug_info{bug="mds"} 1 | ||
191 | node_cpu_bug_info{bug="spectre_v1"} 1 | ||
192 | node_cpu_bug_info{bug="spectre_v2"} 1 | ||
187 | # HELP node_cpu_core_throttles_total Number of times this cpu core has been throttled. | 193 | # HELP node_cpu_core_throttles_total Number of times this cpu core has been throttled. |
188 | # TYPE node_cpu_core_throttles_total counter | 194 | # TYPE node_cpu_core_throttles_total counter |
189 | node_cpu_core_throttles_total{core="0",package="0"} 5 | 195 | node_cpu_core_throttles_total{core="0",package="0"} 5 |
190 | node_cpu_core_throttles_total{core="0",package="1"} 0 | 196 | node_cpu_core_throttles_total{core="0",package="1"} 0 |
191 | node_cpu_core_throttles_total{core="1",package="0"} 0 | 197 | node_cpu_core_throttles_total{core="1",package="0"} 0 |
192 | node_cpu_core_throttles_total{core="1",package="1"} 9 | 198 | node_cpu_core_throttles_total{core="1",package="1"} 9 |
199 | # HELP node_cpu_flag_info The `flags` field of CPU information from /proc/cpuinfo. | ||
200 | # TYPE node_cpu_flag_info gauge | ||
201 | node_cpu_flag_info{flag="aes"} 1 | ||
202 | node_cpu_flag_info{flag="avx"} 1 | ||
203 | node_cpu_flag_info{flag="avx2"} 1 | ||
204 | node_cpu_flag_info{flag="constant_tsc"} 1 | ||
193 | # HELP node_cpu_guest_seconds_total Seconds the cpus spent in guests (VMs) for each mode. | 205 | # HELP node_cpu_guest_seconds_total Seconds the cpus spent in guests (VMs) for each mode. |
194 | # TYPE node_cpu_guest_seconds_total counter | 206 | # TYPE node_cpu_guest_seconds_total counter |
195 | node_cpu_guest_seconds_total{cpu="0",mode="nice"} 0.01 | 207 | node_cpu_guest_seconds_total{cpu="0",mode="nice"} 0.01 |