Why not automatically determine the environment in which the program is running?
It seems better to use gogcturner as a sidecar to the project.
If your application runs on the host now, and then you want to change it to run on the Docker, you must change the code and compile the application once.
On the other hand, If you miss changing the env, it will make some strange mistake which maybe a little to trace.
I don’t know how to figure out whether app is running in docker or vm, the cgroup quota path also has value on vm
I don’t know how to figure out whether app is running in docker or vm, the cgroup quota path also has value on vm @cch123 maybe can ref: https://github.com/v8fg/collectd/blob/release/read_container.go
RunningInDockerContainerPid