Tempo: Upgrade trace to profiles docs (#81002)

* Update docs to use embedded flame graph image

* Update headings

* Update link type

* Add embedded flame graph content

* Minor text changes

* Add provisioning example

* Move configure table into  section

* Add configure section

* Update provisioning example

* Update docs/sources/shared/datasources/tempo-traces-to-profiles.md

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>

* Update docs/sources/shared/datasources/tempo-traces-to-profiles.md

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>

* Update wording

---------

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
This commit is contained in:
Joey
2024-01-26 10:56:46 +00:00
committed by GitHub
parent f3f36e37fa
commit 467f293948
3 changed files with 29 additions and 5 deletions

View File

@@ -86,6 +86,8 @@ To use a variable you need to wrap it in `${}`. For example `${__span.name}`.
| **\_\_trace.duration** | The duration of the trace. |
| **\_\_trace.name** | The name of the trace. |
### Configure trace to logs
The following table describes the ways in which you can configure your trace to logs settings:
| Setting name | Description |
@@ -224,6 +226,12 @@ datasources:
queries:
- name: 'Sample query'
query: 'sum(rate(traces_spanmetrics_latency_bucket{$$__tags}[5m]))'
traceToProfiles:
datasourceUid: 'grafana-pyroscope-datasource'
tags: ['job', 'instance', 'pod', 'namespace']
profileTypeId: 'process_cpu:cpu:nanoseconds:cpu:nanoseconds'
customQuery: true
query: 'method="${__span.tags.method}"'
serviceMap:
datasourceUid: 'prometheus'
nodeGraph: