I have a golang server running that exposes metrics on a /debug
endpoint. I want to test the metrics recorded when I hit an endpoint in my tests.
How do I capture the actual metrics recorded by my server and use them in my integration test? I saw lots of code examples on Github but they were all unit tests.