@ -22,12 +22,12 @@ import (
)
const (
cpuVulerabilitiesCollector = "cpu_vulnerabilities"
cpuVuln erabilitiesCollectorSubsystem = "cpu_vulnerabilities"
)
var (
vulnerabilityDesc = prometheus . NewDesc (
prometheus . BuildFQName ( namespace , cpuVulerabilitiesCollector , "info" ) ,
prometheus . BuildFQName ( namespace , cpuVuln erabilitiesCollectorSubsystem , "info" ) ,
"Details of each CPU vulnerability reported by sysfs. The value of the series is an int encoded state of the vulnerability. The same state is stored as a string in the label" ,
[ ] string { "codename" , "state" , "mitigation" } ,
nil ,
@ -37,7 +37,7 @@ var (
type cpuVulnerabilitiesCollector struct { }
func init ( ) {
registerCollector ( cpuVulerabilitiesCollector , defaultDisabled , NewVulnerabilitySysfsCollector )
registerCollector ( cpuVuln erabilitiesCollectorSubsystem , defaultDisabled , NewVulnerabilitySysfsCollector )
}
func NewVulnerabilitySysfsCollector ( logger * slog . Logger ) ( Collector , error ) {