How to send environment information to Service Graph?

I successfully configured Tempo and Prometheus to display the Service Graph.

However, it shows information for all my environments.

All my metrics in prometheus have the label environment.

So I added the following to tempo.yaml, under metrics_generator:

        - environment

But it didn’t work. Is this the correct way of doing it?

Hi @brunobastosg. What the metrics-generator does is take attributes that are present in spans and send them as metric labels. If the environment attribute is present, then it should be added to your metrics.

1 Like

Thanks, that was it. I had to add the attribute to the span.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.