diff --git a/pkg/metrics/container_sampler.go b/pkg/metrics/container_sampler.go index 0b3bbfa7b..ca2f3f91e 100644 --- a/pkg/metrics/container_sampler.go +++ b/pkg/metrics/container_sampler.go @@ -27,13 +27,15 @@ func GetContainerSamplers(cacheTTL time.Duration, dockerAPIVersion, dockerContai containerdSampler := NewContainerdSampler(cacheTTL, dockerContainerdNamespace) if containerdSampler.Enabled() { containerSamplers = append(containerSamplers, containerdSampler) - clog.Debug("containerd sampler enabled") + + clog.Info("containerd sampler enabled") } dockerSampler := NewDockerSampler(cacheTTL, dockerAPIVersion) if dockerSampler.Enabled() { containerSamplers = append(containerSamplers, dockerSampler) - clog.Debug("docker sampler enabled") + + clog.Info("docker sampler enabled") } return containerSamplers diff --git a/pkg/metrics/containerd_sampler.go b/pkg/metrics/containerd_sampler.go index c0647b89e..cbdd630d4 100644 --- a/pkg/metrics/containerd_sampler.go +++ b/pkg/metrics/containerd_sampler.go @@ -21,7 +21,7 @@ var ( cslog = log.WithComponent("ContainerdSampler") //nolint:gochecknoglobals errContainerdSampler = errors.New("containerd sampler") - errInitializeContainerd = errors.New("unable to initialize containerd client") + errInitializeContainerd = errors.New("unable to initialize containerd client, could be not installed on the host") errCannotGetPids = errors.New("unable to get pids for container") errCannotGetTask = errors.New("unable to get task for container") errCannotGetContainerInfo = errors.New("unable to get container info") @@ -71,7 +71,7 @@ func (d *ContainerdSampler) Enabled() bool { d.containerdClient, err = initializeContainerdClient() if err != nil { - cslog.WithError(err).Debug(errInitializeContainerd.Error()) + cslog.WithError(err).Warn(errInitializeContainerd.Error()) return false } diff --git a/pkg/metrics/docker_sampler.go b/pkg/metrics/docker_sampler.go index 3f9815950..f7cb23781 100644 --- a/pkg/metrics/docker_sampler.go +++ b/pkg/metrics/docker_sampler.go @@ -69,7 +69,7 @@ func (d *DockerSampler) Enabled() bool { d.dockerClient, err = initializeDockerClient(d.apiVersion) if err != nil { - dslog.WithError(err).Debug("Unable to initialize docker client.") + dslog.WithError(err).Warn("unable to initialize docker client, could be not installed on the host") return false }