Closed vanugrah closed 2 months ago
I will also try to debug the issue with JSONOutputter.Output to filter the angular dashboards that's causing some duplicates after each request :slightly_smiling_face:
Hey @xnyo - thanks a lot for the review. I have incorporated the majority of your feedback and merged in your PR with the changes to still enable the CLI mode.
Only net new changes are a runServer
method which sets up the HTTP server with signal handling. As far as I can tell http.ListenAndServe actually does not setup signal handlers appropriately.
Can you please take another look?
Hey @xnyo - Agree with all of your suggestions. I've updated the PR accordingly.
Done - sorry I have not been looking at this PR very closely. Thanks for your thorough review.
This is a useful script. However it is a pain to manually re-run the script to keep track of a migration. This PR:
/output
route.This can now be hooked up directly to Grafana via the infinity data source plugin for live migration tracking.
Usage:
Note: There was a strange bug with using JSONOutputter.Output to filter the angular dashboards which resulted in a increasing number of duplicates with each request to the /output endpoint. My suspicion is its something to do with in place filtering of the Dashboards slice. I eventually decided to write my own version which seems to be working as expected
filterAngularDashboards
.