grafana/k8s-monitoring-helm

Why there are so may alloy-logs agents when `gatherMethod: api`?

gytis-ivaskevicius opened this issue · 2 comments

I've set:

    logs = {
      pod_logs = {
        gatherMethod = "api"
      }
    }

    alloy-logs = {
      alloy = {
        clustering = {
          enabled = true
        }
        mounts = {
          varlog = false
        }
      }
    }

but there still seems to be 1 pod per node and I am not sure why, since it is using API instead of varlog I expected to see 2 pods at most

@gytis-ivaskevicius when using gatherMethod: api the controller type should be changed from daemonset which is the default for the alloy sub-charts to deployment

alloy-logs:
  alloy:
    clustering: {enabled: true}
    mounts:
      varlog: false
  controller:
    replicas: 2
    type: deployment

Thanks, that solved the issue