-
Notifications
You must be signed in to change notification settings - Fork 281
feat: add commit time metrics #5380
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
Conversation
fdee4a9
to
efdce1a
Compare
efdce1a
to
04841e6
Compare
04841e6
to
79dc888
Compare
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.
LGTM, some nits from clippy
e48f840
to
c943bda
Compare
Docker CI fails 😞 Opened #5398 |
48789c2
to
4236151
Compare
I noticed that tests sometimes fail because of the block stream disconnect. Some peers fail to send a message into the WebSocket within the timeout (10s) and close the stream. The test network then doesn't reconnect, and tests fail due to never reaching expected block height (which is detected by the block stream). I don't know why the iroha/crates/iroha_torii/src/stream.rs Line 22 in 5f8fd11
A solution could be to introduce a reconnection mechanism in the test network. Or increasing the timeout in Iroha. |
7e23dab
to
26fcb36
Compare
adf642f
to
9e62d5f
Compare
Signed-off-by: 0x009922 <43530070+0x009922@users.noreply.github.com>
9e62d5f
to
cc04cf2
Compare
Signed-off-by: 0x009922 <43530070+0x009922@users.noreply.github.com>
Changes:
last_commit_time_ms
gauge andcommit_time_ms
histogram (to observe trends)Status
withcommit_time_ms
(same as Prometheus'last_commit_time_ms
)iroha_core
to clarify the data flow, introduced an actor. Also, finally made the feature-gate#[cfg(feature = "telemetry")]
complete.Additionally:
tx_amounts
histogram. It used default buckets1 which aren't suitable for amounts. I changed it to be in the rangesiroha_test_network
as mentioned in Improve test frameworkNetworkPeer::start
function #5382 + addedtracing
logging for better tracking of time and scopes.Closes #5366
Closes #5388
Closes #5382
Closes #5404
API Changes
Status
(fromGET /status
) contains a new field:commit_time_ms
(compactu64
)TODO
Footnotes
DEFAULT_BUCKETS
: "The default buckets are tailored to broadly measure the response time (in seconds) of a network service. Most likely, however, you will be required to define buckets customized to your use case" ↩