Skip to content

Commit

Permalink
fix wrong cases for label names
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Wasilewski <[email protected]>
  • Loading branch information
mwasilew2 committed Jun 28, 2023
1 parent a53f5ac commit 105e250
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion collector/cpu_vulnerabilities_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var (
vulnerabilityDesc = prometheus.NewDesc(
prometheus.BuildFQName(namespace, cpuVulerabilitiesCollector, "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"},
[]string{"codename", "state"},
nil,
)
totalCountDesc = prometheus.NewDesc(
Expand Down
10 changes: 5 additions & 5 deletions collector/fixtures/e2e-64k-page-output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,11 @@ node_cpu_seconds_total{cpu="7",mode="system"} 101.64
node_cpu_seconds_total{cpu="7",mode="user"} 290.98
# HELP node_cpu_vulnerabilities_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
# TYPE node_cpu_vulnerabilities_info gauge
node_cpu_vulnerabilities_info{CodeName="itlb_multihit",State="not affected"} 0
node_cpu_vulnerabilities_info{CodeName="mds",State="vulnerable"} 1
node_cpu_vulnerabilities_info{CodeName="retbleed",State="mitigation"} 2
node_cpu_vulnerabilities_info{CodeName="spectre_v1",State="mitigation"} 2
node_cpu_vulnerabilities_info{CodeName="spectre_v2",State="mitigation"} 2
node_cpu_vulnerabilities_info{codename="itlb_multihit",state="not affected"} 0
node_cpu_vulnerabilities_info{codename="mds",state="vulnerable"} 1
node_cpu_vulnerabilities_info{codename="retbleed",state="mitigation"} 2
node_cpu_vulnerabilities_info{codename="spectre_v1",state="mitigation"} 2
node_cpu_vulnerabilities_info{codename="spectre_v2",state="mitigation"} 2
# HELP node_cpu_vulnerabilities_total Total number of reported vulnerabilities
# TYPE node_cpu_vulnerabilities_total counter
node_cpu_vulnerabilities_total 5
Expand Down
10 changes: 5 additions & 5 deletions collector/fixtures/e2e-output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,11 @@ node_cpu_seconds_total{cpu="7",mode="system"} 101.64
node_cpu_seconds_total{cpu="7",mode="user"} 290.98
# HELP node_cpu_vulnerabilities_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
# TYPE node_cpu_vulnerabilities_info gauge
node_cpu_vulnerabilities_info{CodeName="itlb_multihit",State="not affected"} 0
node_cpu_vulnerabilities_info{CodeName="mds",State="vulnerable"} 1
node_cpu_vulnerabilities_info{CodeName="retbleed",State="mitigation"} 2
node_cpu_vulnerabilities_info{CodeName="spectre_v1",State="mitigation"} 2
node_cpu_vulnerabilities_info{CodeName="spectre_v2",State="mitigation"} 2
node_cpu_vulnerabilities_info{codename="itlb_multihit",state="not affected"} 0
node_cpu_vulnerabilities_info{codename="mds",state="vulnerable"} 1
node_cpu_vulnerabilities_info{codename="retbleed",state="mitigation"} 2
node_cpu_vulnerabilities_info{codename="spectre_v1",state="mitigation"} 2
node_cpu_vulnerabilities_info{codename="spectre_v2",state="mitigation"} 2
# HELP node_cpu_vulnerabilities_total Total number of reported vulnerabilities
# TYPE node_cpu_vulnerabilities_total counter
node_cpu_vulnerabilities_total 5
Expand Down

0 comments on commit 105e250

Please sign in to comment.