Add loki #740
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#740
Loading…
Reference in a new issue
No description provided.
Delete branch "achuprov/frostfs-node:loki"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Related to:
TrueCloudLab/frostfs-dev-env#57
TrueCloudLab/frostfs-observability#5
Signed-off-by: Alexander Chuprov a.chuprov@yadro.com
8b1120fcb6
to0b3e1c8872
@ -0,0 +3,4 @@
import (
"os"
loki_config "git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-node/config/loki"
loki_config -> lokiConfig
@ -103,0 +108,4 @@
loki.IsEnabled,
)
l.Logger = zap.New(core)
Why not to move it in logger initialization and initialize
core
beforel
?0b3e1c8872
toc0ebcefec7
Add lokito WIP: Add lokiI am making it WIP until TrueCloudLab/frostfs-observability#5/ is merged
c0ebcefec7
to7c8591f83b
WIP: Add lokito Add loki@ -576,0 +578,4 @@
log.Core(),
loggerconfig.ToLokiConfig(appCfg),
)
log.SetCore(lokiCore)
We wrap our core here and then use
WrapCore
insideSetCore
but not actually wrap anything there, it seems wrong. Do we need thisSetCore
at all?fixed
b7531767e9
tob364c6dc44
b364c6dc44
to08e7e76643
08e7e76643
to971746d617
@ -27,0 +37,4 @@
// ToLokiConfig extracts loki config.
func ToLokiConfig(c *config.Config) loki.Config {
hostname, _ := os.Hostname()
time.Sleep(time.Second * 5)
Why this line?
fixed
@ -580,1 +586,4 @@
)
log.Logger = log.Logger.WithOptions(zap.WrapCore(func(_ zapcore.Core) zapcore.Core {
return lokiCore
Now, what about using
lokicore.New
right inside this function?log.Core()
is replaced with the argument (currently_
)fixed
971746d617
to196cf46663