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-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-output.txt')
-rw-r--r-- | collector/fixtures/e2e-output.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/collector/fixtures/e2e-output.txt b/collector/fixtures/e2e-output.txt index e8a5779..02ae152 100644 --- a/collector/fixtures/e2e-output.txt +++ b/collector/fixtures/e2e-output.txt | |||
@@ -232,12 +232,24 @@ node_cooling_device_cur_state{name="0",type="Processor"} 0 | |||
232 | # HELP node_cooling_device_max_state Maximum throttle state of the cooling device | 232 | # HELP node_cooling_device_max_state Maximum throttle state of the cooling device |
233 | # TYPE node_cooling_device_max_state gauge | 233 | # TYPE node_cooling_device_max_state gauge |
234 | node_cooling_device_max_state{name="0",type="Processor"} 3 | 234 | node_cooling_device_max_state{name="0",type="Processor"} 3 |
235 | # HELP node_cpu_bug_info The `bugs` field of CPU information from /proc/cpuinfo. | ||
236 | # TYPE node_cpu_bug_info gauge | ||
237 | node_cpu_bug_info{bug="cpu_meltdown"} 1 | ||
238 | node_cpu_bug_info{bug="mds"} 1 | ||
239 | node_cpu_bug_info{bug="spectre_v1"} 1 | ||
240 | node_cpu_bug_info{bug="spectre_v2"} 1 | ||
235 | # HELP node_cpu_core_throttles_total Number of times this cpu core has been throttled. | 241 | # HELP node_cpu_core_throttles_total Number of times this cpu core has been throttled. |
236 | # TYPE node_cpu_core_throttles_total counter | 242 | # TYPE node_cpu_core_throttles_total counter |
237 | node_cpu_core_throttles_total{core="0",package="0"} 5 | 243 | node_cpu_core_throttles_total{core="0",package="0"} 5 |
238 | node_cpu_core_throttles_total{core="0",package="1"} 0 | 244 | node_cpu_core_throttles_total{core="0",package="1"} 0 |
239 | node_cpu_core_throttles_total{core="1",package="0"} 0 | 245 | node_cpu_core_throttles_total{core="1",package="0"} 0 |
240 | node_cpu_core_throttles_total{core="1",package="1"} 9 | 246 | node_cpu_core_throttles_total{core="1",package="1"} 9 |
247 | # HELP node_cpu_flag_info The `flags` field of CPU information from /proc/cpuinfo. | ||
248 | # TYPE node_cpu_flag_info gauge | ||
249 | node_cpu_flag_info{flag="aes"} 1 | ||
250 | node_cpu_flag_info{flag="avx"} 1 | ||
251 | node_cpu_flag_info{flag="avx2"} 1 | ||
252 | node_cpu_flag_info{flag="constant_tsc"} 1 | ||
241 | # HELP node_cpu_guest_seconds_total Seconds the cpus spent in guests (VMs) for each mode. | 253 | # HELP node_cpu_guest_seconds_total Seconds the cpus spent in guests (VMs) for each mode. |
242 | # TYPE node_cpu_guest_seconds_total counter | 254 | # TYPE node_cpu_guest_seconds_total counter |
243 | node_cpu_guest_seconds_total{cpu="0",mode="nice"} 0.01 | 255 | node_cpu_guest_seconds_total{cpu="0",mode="nice"} 0.01 |