feat: emit more data in prom metrics#15657
Conversation
There was a problem hiding this comment.
If we only use the height, we do not need to parse the rest.
|
Do we want this information as global label actually @tac0turtle? |
|
hmm we shouldnt have it as a global but instead have a single metric |
6eb1f32 to
8a5bf4f
Compare
There was a problem hiding this comment.
this can go in the upgrade module. helps avoid the upgrade dep in server
8a5bf4f to
1daaeaa
Compare
julienrbrt
left a comment
There was a problem hiding this comment.

note: I have tried to check the upgrade height, have you @dhanusaputra?
There was a problem hiding this comment.
I have not tried if it works, but if it does it will only work for app wiring app (app_v2). Could you add this additionally to the app.go?
There was a problem hiding this comment.
| telemetry.SetGaugeWithLabels([]string{"server", "info"}, 1, []metrics.Label{telemetry.NewLabel("upgrade_height", strconv.FormatInt(upgradePlan.Height, 10))}) | |
| if upgradePlan.Height > 0 { | |
| telemetry.SetGaugeWithLabels([]string{"server", "info"}, 1, []metrics.Label{telemetry.NewLabel("upgrade_height", strconv.FormatInt(upgradePlan.Height, 10))}) | |
| } |
Prob need this because the app is instantiated the first time with a temporary directory, for getting the application encoding (
cosmos-sdk/simapp/simd/cmd/root.go
Line 47 in c1ea84d
not yet, will try run the simapp with better PC soon |
9c5f858 to
97cca91
Compare
There was a problem hiding this comment.
this will only set it on startup, we should set it where its called the plan is set. also this assumes the application is using depinject which isnt the case yet.
cosmos-sdk/x/upgrade/keeper/keeper.go
Line 194 in 92738c0
|
no luck testing the upgrade height |
This reverts commit 899aa268b3c967387c1b78f3885bf22e2d7cef02.
4f2dfcf to
603e96c
Compare



Description
Closes: #15593
Workscope
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!to the type prefix if API or client breaking changeCHANGELOG.mdReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!in the type prefix if API or client breaking change