{{- define "deployment.exporter.loadbalancing" -}}
otelcol.exporter.loadbalancing "default" {
  // https://grafana.com/docs/alloy/latest/reference/components/otelcol.exporter.loadbalancing/
  resolver {

    kubernetes {
      service = "{{ .Release.Name }}-statefulset.{{ .Release.Namespace }}"
    }
  }

  protocol {
    otlp {
      client {
        tls {
          insecure = true
        }
      }
    }
  }
}

{{ end }}
