* Added physical_disk collector.
Signed-off-by: Rob Scheepens <rob.scheepens@nutanix.com>
Signed-off-by: Brantley West <brantley@nutanix.com>
* exporter.go: Added physical_disk to defaultCollectors
Signed-off-by: Rob Scheepens <rob.scheepens@nutanix.com>
Signed-off-by: Brantley West <brantley@nutanix.com>
* Fix test cases for physicaldisk metrics
Signed-off-by: Rob Scheepens <rob.scheepens@nutanix.com>
Signed-off-by: Brantley West <brantley@nutanix.com>
* physical_disk.go: cleanup gofmt error
Signed-off-by: Brantley West <brantley@nutanix.com>
* physical_disk.go: populate physical disk 'number' label
Signed-off-by: Brantley West <brantley@nutanix.com>
* Added docs/collector.physical_disk.md.
Signed-off-by: Rob Scheepens <rob.scheepens@nutanix.com>
* physical_disk.go: change 'number' label to 'disk' to match node_exporter label
Signed-off-by: Brantley West <brantley@nutanix.com>
* physical_disk.go: adopt github.com/go-kit/log
Signed-off-by: Brantley West <brantley@nutanix.com>
* physical_disk.go: adopt include/exclude disk list
Signed-off-by: Brantley West <brantley@nutanix.com>
* fix: Add init config for physical_disk collector
Signed-off-by: Ben Reedy <breed808@breed808.com>
* chore: gofmt physical_disk collector
Signed-off-by: Ben Reedy <breed808@breed808.com>
---------
Signed-off-by: Rob Scheepens <rob.scheepens@nutanix.com>
Signed-off-by: Brantley West <brantley@nutanix.com>
Signed-off-by: Ben Reedy <breed808@breed808.com>
Co-authored-by: Brantley West <brantley@nutanix.com>
Co-authored-by: Ben Reedy <breed808@breed808.com>
Metrics are provided by client library, and not the exporter, so
comparing them for differences does not provide much value.
Signed-off-by: Ben Reedy <breed808@breed808.com>
This includes a move from github.com/StackExchange/wmi to
github.com/yusufpapurcu/wmi, as the StackExchange repository has been
archived.
Signed-off-by: Ben Reedy <breed808@breed808.com>
CI runs have exposed timing issues where promtool/e2e scripts query the
exporter, before exporter has begun listening.
Signed-off-by: Ben Reedy <breed808@breed808.com>
From https://prometheus.io/docs/practices/naming/:
To avoid confusion combining different metrics, always use bytes, even
where bits appear more common.
Fixes#800
Signed-off-by: Max Lendrich <maximilian.lendrich@sap.com>
Some collectors were missed when migrating to the local
github.com/prometheus-community/windows_exporter/log library.
Signed-off-by: Ben Reedy <breed808@breed808.com>