metrics: Export log and morph with script #718
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#718
Loading…
Reference in a new issue
No description provided.
Delete branch "acid-ant/frostfs-node:bugfix/680-export-metrics"
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?
Close #680
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
@ -71,2 +71,4 @@
go mod tidy -v && echo OK
# Build export-metrics
export-metrics: dep
Why did you decide to make a separate target?
Just to start a discussion, was it really necessary or not. Think it is a good option to have an ability to build this script. Have no understanding by whom the script is used.
@ -73,0 +75,4 @@
@printf "⇒ Build export-metrics\n"
CGO_ENABLED=0 \
go build -v -trimpath \
-ldflags "-X $(REPO)/misc.Version=$(VERSION)" \
Can we indent continuation of
go build
one level to the right? It's a bit easier to read IMOAlso, do we need
VERSION
here?It may be easy to forget to add metrics defined this way: have you considered adding them to
NodeMetrics
?4553f09c6b
tod952d8aedf
Let's initialize morph metrics together with node. Don't know why @ale64bit init it separately.
@ -27,9 +28,11 @@ func main() {
switch {
case *node != "":
_ = local_metrics.NewNodeMetrics()
_ = logger.NewLogMetrics("frostfs_node")
Can we move this to a
local_metrics
too?@ -27,9 +28,11 @@ func main() {
switch {
case *node != "":
_ = local_metrics.NewNodeMetrics()
_ = logger.NewLogMetrics("frostfs_node")
Can we move this to a
local_metrics
too?Can we move this to a
local_metrics
too?I love responsive UIs!
Me too!
Also, is everything OK with gRPC metrics? They must've missed last time I checked (duration of the request etc.)
@ -27,9 +28,11 @@ func main() {
switch {
case *node != "":
_ = local_metrics.NewNodeMetrics()
_ = logger.NewLogMetrics("frostfs_node")
Can we move this to a
local_metrics
too?Done, please review.
metrics: Export log and morph with scriptto WIP: metrics: Export log and morph with scriptd952d8aedf
tofcd328c84c
Move it to DRAFT for a while to solve an issue with commits.
fcd328c84c
to526ecd1432
WIP: metrics: Export log and morph with scriptto metrics: Export log and morph with scriptPlease, rebase
526ecd1432
to7dba5bc442
Updated.
Will be fixed in scope of this TrueCloudLab/frostfs-observability#4
7dba5bc442
to3a997d1207
@fyrchik, added commit with metrics registration for policer.