grafana / docker-otel-lgtm

OpenTelemetry backend in a Docker image
Apache License 2.0
305 stars 55 forks source link

Enable Tempo spanmetrics #83

Closed Starefossen closed 1 month ago

Starefossen commented 2 months ago

Tempo spanmetrics seams to not be enabled, would you accept a PR for that?

zeitlinger commented 2 months ago

sure :smile:

lucax88x commented 2 months ago

if someones stumbles on how to configure that:

1) download their tempo-config in a local dir

2) bind your local tempo-confg.yaml to their container:

volumes:
  - ${PWD}/docker/otel-lgtm/tempo-config.yaml:/otel-lgtm/tempo-config.yaml

3) configure tempo config, for example with:

overrides:
  metrics_generator_processors: [service-graphs, local-blocks, span-metrics]
  max_bytes_per_trace: x

use this link

to understand which key you can use, we have to use legacy config and you cannot refer to grafana docs sadly.

arukiidou commented 2 months ago

if someones stumbles on how to configure that:

  1. download their tempo-config in a local dir
  2. bind your local tempo-confg.yaml to their container: volumes:

    • ${PWD}/docker/otel-lgtm/tempo-config.yaml:/otel-lgtm/tempo-config.yaml
  3. configure tempo config, for example with:

overrides: metrics_generator_processors: [service-graphs, local-blocks, span-metrics] max_bytes_per_trace: x use this link

to understand which key you can use, we have to use legacy config and you cannot refer to grafana docs sadly.

Documentation and source code would be here.

zeitlinger commented 1 month ago

If you want to have more advanced configs, you can do so by mounting config files like here:

https://github.com/grafana/docker-otel-lgtm/blob/2476e74e4980568d1003a526a8b2d887b7e8aff0/examples/java/json-logging-logback/k8s/lgtm.yaml