mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-11-16 01:33:07 +01:00
Merge pull request #84 from k0ste/help2
Added disk form_factor meta label
This commit is contained in:
commit
2099be1e2c
4 changed files with 500 additions and 731 deletions
1227
EXAMPLE.md
1227
EXAMPLE.md
File diff suppressed because it is too large
Load diff
2
main.go
2
main.go
|
@ -91,7 +91,7 @@ func main() {
|
|||
kingpin.Parse()
|
||||
logger := promlog.New(promlogConfig)
|
||||
|
||||
level.Info(logger).Log("msg", "Starting systemd_exporter", "version", version.Info())
|
||||
level.Info(logger).Log("msg", "Starting smartctl_exporter", "version", version.Info())
|
||||
level.Info(logger).Log("msg", "Build context", "build_context", version.BuildContext())
|
||||
|
||||
devices := *smartctlDevices
|
||||
|
|
|
@ -43,6 +43,7 @@ var (
|
|||
"firmware_version",
|
||||
"ata_version",
|
||||
"sata_version",
|
||||
"form_factor",
|
||||
},
|
||||
nil,
|
||||
)
|
||||
|
|
|
@ -109,6 +109,7 @@ func (smart *SMARTctl) mineDevice() {
|
|||
smart.json.Get("firmware_version").String(),
|
||||
smart.json.Get("ata_version.string").String(),
|
||||
smart.json.Get("sata_version.string").String(),
|
||||
smart.json.Get("form_factor.name").String(),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue