metrics: Export log and morph with script #718

Merged
fyrchik merged 1 commit from acid-ant/frostfs-node:bugfix/680-export-metrics into master 2024-09-04 19:51:03 +00:00
Member

Close #680

Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com

Close #680 Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant requested review from storage-core-committers 2023-10-04 07:12:18 +00:00
acid-ant requested review from storage-core-developers 2023-10-04 07:12:24 +00:00
dstepanov-yadro approved these changes 2023-10-04 08:40:11 +00:00
fyrchik approved these changes 2023-10-05 13:13:47 +00:00
Makefile Outdated
@ -71,2 +71,4 @@
go mod tidy -v && echo OK
# Build export-metrics
export-metrics: dep
Owner

Why did you decide to make a separate target?

Why did you decide to make a separate target?
Author
Member

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.

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.
Makefile Outdated
@ -73,0 +75,4 @@
@printf "⇒ Build export-metrics\n"
CGO_ENABLED=0 \
go build -v -trimpath \
-ldflags "-X $(REPO)/misc.Version=$(VERSION)" \
Owner

Can we indent continuation of go build one level to the right? It's a bit easier to read IMO

Can we indent continuation of `go build` one level to the right? It's a bit easier to read IMO
Owner

Also, do we need VERSION here?

Also, do we need `VERSION` here?
Owner

It may be easy to forget to add metrics defined this way: have you considered adding them to NodeMetrics?

It may be easy to forget to add metrics defined this way: have you considered adding them to `NodeMetrics`?
acid-ant force-pushed bugfix/680-export-metrics from 4553f09c6b to d952d8aedf 2023-10-05 14:34:19 +00:00 Compare
Author
Member

It may be easy to forget to add metrics defined this way: have you considered adding them to NodeMetrics?

Let's initialize morph metrics together with node. Don't know why @ale64bit init it separately.

> It may be easy to forget to add metrics defined this way: have you considered adding them to `NodeMetrics`? Let's initialize morph metrics together with node. Don't know why @ale64bit init it separately.
fyrchik reviewed 2023-10-05 14:37:13 +00:00
@ -27,9 +28,11 @@ func main() {
switch {
case *node != "":
_ = local_metrics.NewNodeMetrics()
_ = logger.NewLogMetrics("frostfs_node")
Owner

Can we move this to a local_metrics too?

Can we move this to a `local_metrics` too?
fyrchik marked this conversation as resolved
fyrchik reviewed 2023-10-05 14:37:15 +00:00
@ -27,9 +28,11 @@ func main() {
switch {
case *node != "":
_ = local_metrics.NewNodeMetrics()
_ = logger.NewLogMetrics("frostfs_node")
Owner

Can we move this to a local_metrics too?

Can we move this to a `local_metrics` too?
Owner

Can we move this to a local_metrics too?

Can we move this to a `local_metrics` too?
Owner

I love responsive UIs!

I love responsive UIs!
Author
Member

Me too!

Me too!
fyrchik marked this conversation as resolved
fyrchik approved these changes 2023-10-05 14:37:53 +00:00
fyrchik left a comment
Owner

Also, is everything OK with gRPC metrics? They must've missed last time I checked (duration of the request etc.)

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")
Owner

Can we move this to a local_metrics too?

Can we move this to a `local_metrics` too?
Author
Member

Done, please review.

Done, please review.
acid-ant changed title from metrics: Export log and morph with script to WIP: metrics: Export log and morph with script 2023-10-05 14:47:30 +00:00
acid-ant force-pushed bugfix/680-export-metrics from d952d8aedf to fcd328c84c 2023-10-05 14:49:33 +00:00 Compare
Author
Member

Move it to DRAFT for a while to solve an issue with commits.

Move it to DRAFT for a while to solve an issue with commits.
acid-ant force-pushed bugfix/680-export-metrics from fcd328c84c to 526ecd1432 2023-10-08 09:33:09 +00:00 Compare
acid-ant changed title from WIP: metrics: Export log and morph with script to metrics: Export log and morph with script 2023-10-08 09:33:55 +00:00
acid-ant requested review from dstepanov-yadro 2023-10-08 09:33:57 +00:00
acid-ant requested review from fyrchik 2023-10-08 09:34:06 +00:00
dstepanov-yadro approved these changes 2023-10-09 10:18:55 +00:00
Owner

Please, rebase

Please, rebase
acid-ant force-pushed bugfix/680-export-metrics from 526ecd1432 to 7dba5bc442 2023-10-10 06:15:50 +00:00 Compare
Author
Member

Please, rebase

Updated.

> Please, rebase Updated.
Author
Member

Also, is everything OK with gRPC metrics? They must've missed last time I checked (duration of the request etc.)

Will be fixed in scope of this TrueCloudLab/frostfs-observability#4

> Also, is everything OK with gRPC metrics? They must've missed last time I checked (duration of the request etc.) Will be fixed in scope of this https://git.frostfs.info/TrueCloudLab/frostfs-observability/issues/4
acid-ant force-pushed bugfix/680-export-metrics from 7dba5bc442 to 3a997d1207 2023-10-11 14:08:13 +00:00 Compare
acid-ant added 1 commit 2023-10-12 06:37:47 +00:00
[#735] policer: Register metrics
Some checks failed
DCO action / DCO (pull_request) Successful in 3m40s
Vulncheck / Vulncheck (pull_request) Successful in 3m22s
Build / Build Components (1.21) (pull_request) Successful in 4m15s
Tests and linters / Staticcheck (pull_request) Successful in 5m13s
Tests and linters / Lint (pull_request) Successful in 5m52s
Tests and linters / Tests with -race (pull_request) Failing after 6m3s
Tests and linters / Tests (1.20) (pull_request) Successful in 7m28s
Tests and linters / Tests (1.21) (pull_request) Successful in 7m28s
Build / Build Components (1.20) (pull_request) Successful in 8m10s
d5c10612f4
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
Author
Member

@fyrchik, added commit with metrics registration for policer.

@fyrchik, added commit with metrics registration for policer.
acid-ant requested review from storage-core-committers 2023-10-12 06:42:48 +00:00
fyrchik approved these changes 2023-10-12 06:50:18 +00:00
fyrchik approved these changes 2023-10-16 13:09:58 +00:00
fyrchik merged commit d5c10612f4 into master 2023-10-16 13:10:32 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#718
No description provided.