Skip to content

Commit 138e1e6

Browse files
committed
fix customresourcestate metric names to not contain underscores
1 parent e3bc8c2 commit 138e1e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/customresourcestate/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ func (r Resource) GetSubsystem() string {
132132
return strings.NewReplacer(
133133
"/", "_",
134134
".", "_",
135+
"-", "_",
135136
).Replace(fmt.Sprintf("%s_%s_%s", r.GroupVersionKind.Group, r.GroupVersionKind.Version, r.GroupVersionKind.Kind))
136137
}
137138
if r.Subsystem == "_" {

0 commit comments

Comments
 (0)