-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat(node): file-based observability configuration #1078
Conversation
77adbfc
to
9f8f27a
Compare
9f8f27a
to
378d72c
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.
Could you post an example of what the traces look like with the console and file outputs?
cfbeab6
to
4e7d1c6
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.
Just some nits.
Output from file: {"timestamp":"2024-07-22T16:23:58.163639Z","level":"INFO","fields":{"message":"Connecting to Tendermint at http://127.0.0.1:26657/"},"filename":"fendermint/app/src/cmd/run.rs","line_number":70}
{"timestamp":"2024-07-22T16:23:58.164816Z","level":"DEBUG","fields":{"message":"validator key not configured"},"filename":"fendermint/app/src/cmd/run.rs","line_number":104}
{"timestamp":"2024-07-22T16:23:58.166078Z","level":"INFO","fields":{"message":"opening database","path":"/Users/karlem/.fendermint/data/rocksdb"},"filename":"fendermint/app/src/cmd/run.rs","line_number":395}
{"timestamp":"2024-07-22T16:23:58.212059Z","level":"INFO","fields":{"message":"IPLD Resolver disabled."},"filename":"fendermint/app/src/cmd/run.rs","line_number":241}
{"timestamp":"2024-07-22T16:23:58.212092Z","level":"INFO","fields":{"message":"topdown finality disabled"},"filename":"fendermint/app/src/cmd/run.rs","line_number":272}
{"timestamp":"2024-07-22T16:23:58.212098Z","level":"INFO","fields":{"message":"snapshots disabled"},"filename":"fendermint/app/src/cmd/run.rs","line_number":298}
{"timestamp":"2024-07-22T16:23:58.212450Z","level":"INFO","fields":{"message":"serving metrics","listen_addr":"127.0.0.1:9184"},"filename":"fendermint/app/src/cmd/run.rs","line_number":343}
{"timestamp":"2024-07-22T16:23:58.213254Z","level":"INFO","fields":{"message":"starting ABCI server","addr":"\"127.0.0.1:26658\""},"filename":"/Users/karlem/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-abci-0.7.0/src/v037/server.rs","line_number":127}
{"timestamp":"2024-07-22T16:23:58.213260Z","level":"TRACE","fields":{"message":"worker polling for next message"},"filename":"/Users/karlem/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-0.4.13/src/buffer/worker.rs","line_number":108}
{"timestamp":"2024-07-22T16:23:58.213302Z","level":"INFO","fields":{"message":"bound tcp listener","local_addr":"127.0.0.1:26658"},"filename":"/Users/karlem/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-abci-0.7.0/src/v037/server.rs","line_number":130} Output from console: 2024-07-22T16:23:58.154879Z INFO fendermint/app/src/cmd/mod.rs:88: reading configuration path="/Users/karlem/.fendermint/config"
2024-07-22T16:23:58.163563Z INFO fendermint/app/src/cmd/run.rs:70: Connecting to Tendermint at http://127.0.0.1:26657/
2024-07-22T16:23:58.164808Z DEBUG fendermint/app/src/cmd/run.rs:104: validator key not configured
2024-07-22T16:23:58.166069Z INFO fendermint/app/src/cmd/run.rs:395: opening database path="/Users/karlem/.fendermint/data/rocksdb"
2024-07-22T16:23:58.212041Z INFO fendermint/app/src/cmd/run.rs:241: IPLD Resolver disabled.
2024-07-22T16:23:58.212089Z INFO fendermint/app/src/cmd/run.rs:272: topdown finality disabled
2024-07-22T16:23:58.212096Z INFO fendermint/app/src/cmd/run.rs:298: snapshots disabled
2024-07-22T16:23:58.212444Z INFO fendermint/app/src/cmd/run.rs:343: serving metrics listen_addr="127.0.0.1:9184"
2024-07-22T16:23:58.213176Z INFO /Users/karlem/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-abci-0.7.0/src/v037/server.rs:127: starting ABCI server addr="127.0.0.1:26658"
2024-07-22T16:23:58.213219Z TRACE /Users/karlem/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-0.4.13/src/buffer/worker.rs:108: worker polling for next message
2024-07-22T16:23:58.213297Z INFO /Users/karlem/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-abci-0.7.0/src/v037/server.rs:130: bound tcp listener local_addr=127.0.0.1:26658 |
@karlem do we have logs/outputs showing journal event traces? 🙏 |
A metrics dump would also be very welcome, to ensure everything is working as expected 🙏 |
Metrics
|
Some consensus related traces: Console: 2024-07-22T16:58:48.490982Z INFO ipc/observability/src/lib.rs:42: domain="Proposals" event=BlockProposalSent { validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), height: 173, size: 0, tx_count: 0 }
2024-07-22T16:58:48.508255Z INFO ipc/observability/src/lib.rs:42: domain="Proposals" event=BlockProposalReceived { height: 173, hash: f87b67959f9c2f4119cfa2921ad8d121f0c23d7aa57fe0e363cf42a4f42fb36c, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41) }
2024-07-22T16:58:48.508269Z INFO ipc/observability/src/lib.rs:42: domain="Proposals" event=BlockProposalEvaluated { height: 173, hash: f87b67959f9c2f4119cfa2921ad8d121f0c23d7aa57fe0e363cf42a4f42fb36c, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), accept: true, reason: None }
2024-07-22T16:58:48.544056Z INFO ipc/observability/src/lib.rs:42: domain="Proposals" event=BlockCommitted { height: 173, app_hash: 0171a0e40220d36a47bfd38c81b0acd8a87a5d473875dc31cdbba81b5d3157b2ae4c009a81f4 }
2024-07-22T16:58:49.526968Z INFO ipc/observability/src/lib.rs:42: domain="Proposals" event=BlockProposalSent { validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), height: 174, size: 0, tx_count: 0 }
2024-07-22T16:58:49.547365Z INFO ipc/observability/src/lib.rs:42: domain="Proposals" event=BlockProposalReceived { height: 174, hash: 466a6d4efbd7cd78553e493844c69a661c917d30a25dd56a42e3a02539c24014, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41) }
2024-07-22T16:58:49.547385Z INFO ipc/observability/src/lib.rs:42: domain="Proposals" event=BlockProposalEvaluated { height: 174, hash: 466a6d4efbd7cd78553e493844c69a661c917d30a25dd56a42e3a02539c24014, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), accept: true, reason: None }
2024-07-22T16:58:49.582128Z INFO ipc/observability/src/lib.rs:42: domain="Proposals" event=BlockCommitted { height: 174, app_hash: 0171a0e402206e947f59c0f0746fd8dacd2d4c8eb30055233ce89f93bd68e86194e8d83a761d }
2024-07-22T16:58:50.565149Z INFO ipc/observability/src/lib.rs:42: domain="Proposals" event=BlockProposalSent { validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), height: 175, size: 0, tx_count: 0 }
2024-07-22T16:58:50.582157Z INFO ipc/observability/src/lib.rs:42: domain="Proposals" event=BlockProposalReceived { height: 175, hash: 4696b5a37bf003d1f4468059bf96c34a7d79a0c93203601aadadf921c17f782a, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41) }
2024-07-22T16:58:50.582189Z INFO ipc/observability/src/lib.rs:42: domain="Proposals" event=BlockProposalEvaluated { height: 175, hash: 4696b5a37bf003d1f4468059bf96c34a7d79a0c93203601aadadf921c17f782a, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), accept: true, reason: None }
2024-07-22T16:58:50.616325Z INFO ipc/observability/src/lib.rs:42: domain="Proposals" event=BlockCommitted { height: 175, app_hash: 0171a0e40220093a9e7b9d7c6bb3e540710b560f6f5d9baccc51b5dc257be127c8926fc99f66 } File: {"timestamp":"2024-07-22T16:58:47.453943Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockProposalSent { validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), height: 172, size: 0, tx_count: 0 }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:47.473650Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockProposalReceived { height: 172, hash: ac51519dbb9241bd40ff1ffea0cd89f2a0c97e123f47a26545e253e17fe85439, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41) }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:47.473673Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockProposalEvaluated { height: 172, hash: ac51519dbb9241bd40ff1ffea0cd89f2a0c97e123f47a26545e253e17fe85439, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), accept: true, reason: None }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:47.512034Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockCommitted { height: 172, app_hash: 0171a0e40220ef7f37a1c3ea1c58f78fecc94f591551222c2a4bd9e3876346268e0f53a9d7b3 }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:48.490986Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockProposalSent { validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), height: 173, size: 0, tx_count: 0 }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:48.508260Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockProposalReceived { height: 173, hash: f87b67959f9c2f4119cfa2921ad8d121f0c23d7aa57fe0e363cf42a4f42fb36c, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41) }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:48.508535Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockProposalEvaluated { height: 173, hash: f87b67959f9c2f4119cfa2921ad8d121f0c23d7aa57fe0e363cf42a4f42fb36c, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), accept: true, reason: None }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:48.544060Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockCommitted { height: 173, app_hash: 0171a0e40220d36a47bfd38c81b0acd8a87a5d473875dc31cdbba81b5d3157b2ae4c009a81f4 }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:49.527006Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockProposalSent { validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), height: 174, size: 0, tx_count: 0 }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:49.547372Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockProposalReceived { height: 174, hash: 466a6d4efbd7cd78553e493844c69a661c917d30a25dd56a42e3a02539c24014, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41) }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:49.547420Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockProposalEvaluated { height: 174, hash: 466a6d4efbd7cd78553e493844c69a661c917d30a25dd56a42e3a02539c24014, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), accept: true, reason: None }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:49.582133Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockCommitted { height: 174, app_hash: 0171a0e402206e947f59c0f0746fd8dacd2d4c8eb30055233ce89f93bd68e86194e8d83a761d }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:50.565155Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockProposalSent { validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), height: 175, size: 0, tx_count: 0 }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:50.582163Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockProposalReceived { height: 175, hash: 4696b5a37bf003d1f4468059bf96c34a7d79a0c93203601aadadf921c17f782a, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41) }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:50.582304Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockProposalEvaluated { height: 175, hash: 4696b5a37bf003d1f4468059bf96c34a7d79a0c93203601aadadf921c17f782a, size: 0, tx_count: 0, validator: account::Id(44D6E9254B04951164143C6D688C2036FA593F41), accept: true, reason: None }"},"filename":"ipc/observability/src/lib.rs","line_number":42}
{"timestamp":"2024-07-22T16:58:50.616333Z","level":"INFO","fields":{"domain":"Proposals","event":"BlockCommitted { height: 175, app_hash: 0171a0e40220093a9e7b9d7c6bb3e540710b560f6f5d9baccc51b5dc257be127c8926fc99f66 }"},"filename":"ipc/observability/src/lib.rs","line_number":42} |
@raulk Please see the output above. I have only set up a simple node without a connection to a parent, so it only includes consensus metrics/traces. Additionally, I took a random sample, so don't worry if they don't look coherent (for instance, they all refer to different block heights, etc.). |
Close #1071