* 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>
Behaviour of init functions has been centralised in `collector/init.go`,
and can be called during exporter startup. This allows the exporter to
control the timing of collector initialisation, rather than relying on
the import & `init()` method.
This should reduce unexpected behaviour arising from the use of
`init()`, such as #551.
Signed-off-by: Ben Reedy <breed808@breed808.com>
Bumps [github.com/alecthomas/kingpin](https://github.com/alecthomas/kingpin) from
v2.2.6 to v2.3.2.
This also changes the upstream package name from
gopkg.in/alecthomas/kingpin.v2 to github.com/alecthomas/kingpin/v2 which
is required by the upstream exporter-toolkit package.
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>
Co-authored-by: Brian Redmond <brianisrunning@gmail.com>
Signed-off-by: Brian Redmond <brianisrunning@gmail.com>
Signed-off-by: James Sturtevant <jstur@microsoft.com>
Add the exporter-toolkit https package to allow configuring TLS and
auth.
Signed-off-by: Ben Kochie <superq@gmail.com>
Signed-off-by: Calle Pettersson <carlpett@users.noreply.github.com>