grafana / docker-otel-lgtm

OpenTelemetry backend in a Docker image
Apache License 2.0
324 stars 60 forks source link

Using otlp with prometheus and loki #40

Closed arukiidou closed 6 months ago

arukiidou commented 6 months ago

As a user, thank you for creating otel-lgtm.

If using otlp in all components, it would be more easier to migrate from other components to lgtm, from lgtm to individual (prometheus, tempo, loki).

Can I contribute to this?

### Tasks
- [x] Enable out_of_order_time_window in prometheus _#42
- [ ] #42
- [ ] #41
- [x] fix regression: #48
- [ ] #44
zeitlinger commented 6 months ago

I don't understand - can you elaborate?

arukiidou commented 6 months ago

this is how we want otelcol to be:

exporters:
  otlp/traces:
    endpoint: http://localhost:4418
  otlp/metrics:
    endpoint: http://localhost:9090/api/v1/otlp/
  otlp/logs:
    endpoint: http://localhost:3100/otlp

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlp/traces]
    metrics:
      receivers: [otlp,prometheus/collector]
      processors: [batch]
      exporters: [otlp/metrics]
    logs:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlp/logs]
zeitlinger commented 6 months ago

OK, now I get it :smile:

@fstab I think this is a good idea - wdyt?

fstab commented 6 months ago

YESSSS, please create a PR. I also wanted to upgrade to Tempo 3 and do this, but didn't find the time yet.