-
Notifications
You must be signed in to change notification settings - Fork 295
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(localnet) - add localnet log aggregation tool #4758
Conversation
hey @mur-me good job on this. I made a few comments, please address. Additionally, I've managed to run the stack with my localnet ! |
hey @GheisMohammadi @Frozen please test the stack, this PR is for you guys |
Addressed all the comments, added a few improvements like restart and anon accces to the grafana |
…nymus access - it will directly open explore page now, add log commands to the help
8adf4b6
to
432dc20
Compare
Issue
I've covered localnet deployment with the same tool set as higher networks - Promtail-Loki-Grafana.
What was done:
debug-start-log
anddebug-stop-log
,debug-restart-log
Details:
test/logs_aggregator/
folder.env
file intest/logs_aggregator/.env
test/logs_aggregator/.env
is a source of variables for docker-composetest/logs_aggregator/.env
Test
Local run:
working in /home/uladzislau/go/src/github.com/harmony-one/harmony/test/logs_aggregator /home/uladzislau/go/src/github.com/harmony-one/harmony/test/logs_aggregator [INFO] - stopping log aggregation [+] Stopping 3/3 ✔ Container logs_aggregator-loki-1 Stopped 2.6s ✔ Container logs_aggregator-promtail-1 Stopped 0.6s ✔ Container logs_aggregator-grafana-1 Stopped 0.6s Going to remove logs_aggregator-promtail-1, logs_aggregator-grafana-1, logs_aggregator-loki-1 [+] Removing 3/0 ✔ Container logs_aggregator-promtail-1 Removed 0.0s ✔ Container logs_aggregator-grafana-1 Removed 0.0s ✔ Container logs_aggregator-loki-1 Removed 0.0s [INFO] - cleanup .env
make debug-stop-log-aggregator against already stopped/not-started localnet it will be failure
make debug-start-log-aggregator against not-started localnet it will be failure
make debug-restart-log:
Unit Test Coverage
Before:
After:
Test/Run Logs
Operational Checklist
Does this PR introduce backward-incompatible changes to the on-disk data structure and/or the over-the-wire protocol?. (If no, skip to question 8.)
YES|NO
Describe the migration plan.. For each flag epoch, describe what changes take place at the flag epoch, the anticipated interactions between upgraded/non-upgraded nodes, and any special operational considerations for the migration.
Describe how the plan was tested.
How much minimum baking period after the last flag epoch should we allow on Pangaea before promotion onto mainnet?
What are the planned flag epoch numbers and their ETAs on Pangaea?
What are the planned flag epoch numbers and their ETAs on mainnet?
Note that this must be enough to cover baking period on Pangaea.
What should node operators know about this planned change?
Does this PR introduce backward-incompatible changes NOT related to on-disk data structure and/or over-the-wire protocol? (If no, continue to question 11.)
YES|NO
Does the existing
node.sh
continue to work with this change?What should node operators know about this change?
Does this PR introduce significant changes to the operational requirements of the node software, such as >20% increase in CPU, memory, and/or disk usage?
TODO