Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
fix app name so it is a valid metric name
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorVin committed Feb 15, 2024
1 parent 3dd14c8 commit 3291979
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import (
"go.uber.org/zap/zapcore"
)

const AppName = "component-inventory"
// XXX: be careful here. Compound names need to be valid prometheus metric names (used in internal/metrics.go)
const AppName = "component_inventory"

type App struct {
Log *zap.Logger
Expand Down

0 comments on commit 3291979

Please sign in to comment.