rob-scheepens
07fff6afc2
First implementation of physical_disk collector ( #803 )
...
* 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 >
2023-09-22 16:45:22 +10:00
Ben Reedy
95f250ed39
feat: Update NPS collector for go-kit logging
...
Signed-off-by: Ben Reedy <breed808@breed808.com >
2023-07-11 06:23:10 +10:00
rebortg
7115c9dc22
add nps collector in init.go
...
Signed-off-by: rebortg <github@ghlr.de >
2023-07-11 06:04:19 +10:00
Jan-Otto Kröpke
8509bc69a6
switch to go-kit logger
...
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de >
2023-07-09 22:37:27 +02:00
Jan-Otto Kröpke
da6898afc4
Remove fluent-style kingpin
...
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de >
2023-04-17 13:22:36 +02:00
Ben Reedy
535f041423
fix!: Set correct diskdrive collector/metric name
...
Previous name did not match documentation and WMI class.
Signed-off-by: Ben Reedy <breed808@breed808.com >
2023-04-03 06:17:15 +10:00
Ben Reedy
04257a1b25
chore: Ensure collector build funcs are private
...
Collector builder functions are only used internally in the `collector`
package, and shouldn't needlessly be exposed as part of the package API
to downstream clients.
Signed-off-by: Ben Reedy <breed808@breed808.com >
2023-04-01 17:54:41 +10:00
Ben Reedy
9214a87d0d
feat: Remove init functions from collectors
...
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 >
2023-04-01 17:54:40 +10:00