Commit Graph

12 Commits

Author SHA1 Message Date
Calle Pettersson f2462b26c8 Lint-fix: Package comments 2019-01-23 09:56:24 +01:00
Dave Henderson 5d4cafc0a1
Adding windows build constraints
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2018-11-29 19:51:12 -05:00
Steve Zook c156f2bcbe protect against emtpy wmi query result sets
If an WMI query were to return an empty result set, trying to access the
first element in the result set would result in a `panic: runtime error:
index out of range` error.

add logic to explicitly check if the result set size is 0 and return an
error rather.

Fixes https://github.com/martinlindhe/wmi_exporter/issues/240
2018-08-07 15:47:39 -04:00
Calle Pettersson cd365c6a3b Harmonize query call layout 2018-06-06 11:35:13 +02:00
Calle Pettersson 667d06116d Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
Calle Pettersson 0ab6c191be Fix wrong metric types in system collector, improve help-strings 2018-04-29 17:14:53 +02:00
Calle Pettersson be5ac7b440 Switch to prometheus/common/log for all logging 2018-04-05 07:27:26 +02:00
有张纸 53048a42fd Update system.go (#66)
fix typo
2017-03-22 17:32:57 +01:00
Martin Lindhe a3f44f60c5 system: fix uptime calculation, fixes #40 2016-11-15 09:07:04 +01:00
Martin Lindhe b40d60b8a4 fix comments 2016-11-14 08:55:51 +01:00
Calle Pettersson a973ce9bca Fix missing rename from perfos->system 2016-10-14 10:14:32 +02:00
Martin Lindhe 52592bb097 os: expose Win32_ComputerSystem and Win32_PerfRawData_PerfOS_System 2016-09-19 09:02:05 +02:00