No code has no instrumentation, so relies on external processes to collect and export metrics on its behalf. This is an example of how it can be done with https://github.com/google/mtail