The localhost check uses nopResolver()
|
var localhostResolver = nopResolver() //nolint:gochecknoglobals // This is a local resolver. |
Using it proves to allocate large amounts of memory. Causing a heap memory hiccup visible in the metrics.
We should change the implementation.
I suggest we read and watch /etc/hosts file instead.