Enable Tempo spanmetrics
Closed this issue · 4 comments
Tempo spanmetrics seams to not be enabled, would you accept a PR for that?
sure 😄
if someones stumbles on how to configure that:
-
download their tempo-config in a local dir
-
bind your local tempo-confg.yaml to their container:
volumes:
- ${PWD}/docker/otel-lgtm/tempo-config.yaml:/otel-lgtm/tempo-config.yaml
-
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.
if someones stumbles on how to configure that:
download their tempo-config in a local dir
bind your local tempo-confg.yaml to their container:
volumes:
- ${PWD}/docker/otel-lgtm/tempo-config.yaml:/otel-lgtm/tempo-config.yaml
configure tempo config, for example with:
overrides:
metrics_generator_processors: [service-graphs, local-blocks, span-metrics]
max_bytes_per_trace: x
use this linkto 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.
-
docs
-
source codes
- https://github.com/grafana/tempo/blob/b05fc82a6406cca5fb28fd8d7e05e4859de907d8/modules/generator/config.go#L54
- https://github.com/grafana/tempo/blob/b05fc82a6406cca5fb28fd8d7e05e4859de907d8/modules/generator/processor/servicegraphs/config.go#L15
- https://github.com/grafana/tempo/blob/b05fc82a6406cca5fb28fd8d7e05e4859de907d8/modules/generator/processor/spanmetrics/config.go#L25
- https://github.com/grafana/tempo/blob/34644c5e7b2f47ac1bdc8fd4b3a7c809d63b7ca9/modules/generator/processor/localblocks/config.go#L17
If you want to have more advanced configs, you can do so by mounting config files like here: