Hey I was working on building the dashboard for ka...
# support
j
Hey I was working on building the dashboard for kafka, can someone send me the config.yaml file for the otelcol-contrib.
@Prashant Shahi
Copy code
receivers:
  kafkametrics:
    protocol_version: 2.0.0
    scrapers:
      - brokers
      - topics
      - consumers
exporters:
  otlp:
    endpoint: <http://localhost:4317>
    tls:
      insecure: true

  logging:
    loglevel: debug  # Logs metrics for debugging purposes


service:
  pipelines:
    metrics:
      receivers: [kafkametrics]  # Use both OTLP and Kafka metrics receivers
      exporters: [otlp, logging]  # Export via OTLP and log for debugging
Am i missing something?
p
broker endpoint is not passed - it would fallback to
localhost:9092
which may work with otel binary but not inside containers as kafka is not reachable via
localhost