-
Notifications
You must be signed in to change notification settings - Fork 94
feat: update tracing crate to thin aptos-telemetry wrapper #1246
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
295b36d
feat: update tracing crate to work with aptos-telemetry
0xIcarus 9b32845
docs: added some comments
0xIcarus d2f5add
fix: add nodeID config
0xIcarus 23a68f0
fix: remove unused import
0xIcarus fc37adb
feat: get node metrics working and pushed in prometheus format
0xIcarus 26140ce
feat: bring up more custom metrics
0xIcarus 16c2a31
fix: update refs to point to movement branch on aptos-core
0xIcarus fa1ca49
Merge remote-tracking branch 'origin/main' into icarus131/telemetry-u…
0xIcarus f445124
Merge remote-tracking branch 'origin/main' into icarus131/telemetry-u…
0xIcarus be432be
chore: cargo fmt
0xIcarus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 9 additions & 19 deletions
28
process-compose/movement-full-node/process-compose.telemetry.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,16 @@ | ||
version: "3" | ||
|
||
environment: | ||
- RUST_LOG=info | ||
|
||
processes: | ||
prometheus: | ||
is_daemon: true | ||
movement-telemetry: | ||
command: | | ||
mkdir -p ${PWD}/tmp/prometheus | ||
cp ${PWD}/docker/compose/movement-full-node/prometheus.yml ${PWD}/tmp/prometheus/prometheus.yml | ||
sed -i.bak 's/movement-full-node:9464/127.0.0.1:9464/g' ${PWD}/tmp/prometheus/prometheus.yml | ||
prometheus --config.file=${PWD}/tmp/prometheus/prometheus.yml --storage.tsdb.path=${PWD}/tmp/prometheus/data --web.listen-address=0.0.0.0:9091 --web.enable-lifecycle | ||
shutdown: | ||
command: | | ||
pkill -f "prometheus --config.file" | ||
readiness_probe: | ||
initial_delay_seconds: 3 | ||
exec: | ||
command: curl -s http://127.0.0.1:9091/-/healthy || exit 1 | ||
|
||
movement-full-node: | ||
depends_on: | ||
prometheus: | ||
condition: process_started | ||
cargo run -p movement-tracing | ||
environment: | ||
- MOVEMENT_METRICS_ADDR=127.0.0.1:9464 | ||
- MOVEMENT_METRICS_ADDR=0.0.0.0:9464 | ||
- APTOS_FORCE_ENABLE_TELEMETRY=1 | ||
- RUST_LOG=debug,aptos_telemetry=debug | ||
- APTOS_METRICS_PORT=9464 | ||
- APTOS_DISABLE_TELEMETRY_PUSH_METRICS=1 | ||
- PROMETHEUS_METRICS_ENABLED=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.