-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unknown message metric. #368
Add unknown message metric. #368
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @silverspase, @wojtek-coreum, and @ysv)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @dzmitryhil, @silverspase, and @wojtek-coreum)
x/deterministicgas/config.go
line 48 at r1 (raw file):
cfg.gasByMsg = map[string]gasByMsgFunc{ // asset/ft //MsgType(&assetfttypes.MsgIssue{}): constantGasFunc(70000),
ok, but pls rollback it before merging to master)
x/deterministicgas/config.go
line 152 at r1 (raw file):
// In the future other approach could be to return third boolean parameter // identifying if message is known and report unknown messages to monitoring. reportUnknownMessageMetric(MsgType(msg))
are u going to add this to grafana in a next crust PR also ?
x/deterministicgas/config.go
line 240 at r1 (raw file):
func reportUnknownMessageMetric(msgName string) { metrics.IncrCounterWithLabels([]string{"unknown_message"}, 1, []metrics.Label{
shouldn't it be deterministic_gas_unknown_message
?
Because in general this message is know but unknown only for determ gas module
* Update metric name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @silverspase, @wojtek-coreum, and @ysv)
x/deterministicgas/config.go
line 48 at r1 (raw file):
Previously, ysv (Yaroslav Savchuk) wrote…
ok, but pls rollback it before merging to master)
Updated.
x/deterministicgas/config.go
line 152 at r1 (raw file):
Previously, ysv (Yaroslav Savchuk) wrote…
are u going to add this to grafana in a next crust PR also ?
No need to add it to the grafana, since such dashboard will be always empty. What I can do is to add it as allert. does it make sense?
x/deterministicgas/config.go
line 240 at r1 (raw file):
Previously, ysv (Yaroslav Savchuk) wrote…
shouldn't it be
deterministic_gas_unknown_message
?
Because in general this message is know but unknown only for determ gas module
Agree, updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 4 unresolved discussions (waiting on @dzmitryhil, @miladz68, @silverspase, and @ysv)
a discussion (no related file):
Is this PR really needed? We have unit test which verifies that all the messages are handled. So this condition is just impossible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @dzmitryhil, @silverspase, and @ysv)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @silverspase, @wojtek-coreum, and @ysv)
a discussion (no related file):
Previously, wojtek-coreum (Wojtek) wrote…
Is this PR really needed? We have unit test which verifies that all the messages are handled. So this condition is just impossible.
I also have such dought. Let's discuss today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @silverspase and @wojtek-coreum)
x/deterministicgas/config.go
line 152 at r1 (raw file):
Previously, dzmitryhil (Dzmitry Hil) wrote…
No need to add it to the grafana, since such dashboard will be always empty. What I can do is to add it as allert. does it make sense?
alert yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @silverspase, @wojtek-coreum, and @ysv)
a discussion (no related file):
Previously, dzmitryhil (Dzmitry Hil) wrote…
I also have such dought. Let's discuss today.
@ysv what about that question?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @silverspase and @wojtek-coreum)
a discussion (no related file):
Previously, dzmitryhil (Dzmitry Hil) wrote…
@ysv what about that question?
lets discuss after the daily
Adde to my notes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @silverspase)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @silverspase)
Example:
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)