forked from TrueCloudLab/frostfs-node
[#xx] Fix invalid log metric namespace identifier
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
4887f489a1
commit
344d6b2ae1
3 changed files with 4 additions and 4 deletions
|
@ -61,7 +61,7 @@ func main() {
|
|||
cfg, err = newConfig()
|
||||
exitErr(err)
|
||||
|
||||
logPrm.MetricsNamespace = "frostfs-ir"
|
||||
logPrm.MetricsNamespace = "frostfs_ir"
|
||||
err = logPrm.SetLevelString(
|
||||
cfg.GetString("logger.level"),
|
||||
)
|
||||
|
|
|
@ -542,7 +542,7 @@ func initCfg(appCfg *config.Config) *cfg {
|
|||
logPrm, err := c.loggerPrm()
|
||||
fatalOnErr(err)
|
||||
|
||||
logPrm.MetricsNamespace = "frostfs-node"
|
||||
logPrm.MetricsNamespace = "frostfs_node"
|
||||
|
||||
log, err := logger.NewLogger(logPrm)
|
||||
fatalOnErr(err)
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
logSubsystem = "log"
|
||||
logSubsystem = "logger"
|
||||
logLevelLabel = "level"
|
||||
logDroppedLabel = "dropped"
|
||||
)
|
||||
|
@ -23,7 +23,7 @@ func newLogMetrics(namespace string) *logMetrics {
|
|||
logCount: metrics.NewCounterVec(prometheus.CounterOpts{
|
||||
Namespace: namespace,
|
||||
Subsystem: logSubsystem,
|
||||
Name: "log_count",
|
||||
Name: "entry_count",
|
||||
Help: "Total log entries emitted or dropped by severity level",
|
||||
}, []string{logLevelLabel, logDroppedLabel}),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue