•Grafana 系列文章[1]
你可以通过Explore查询和显示 Jaeger 的 trace。有 3 种方法:
•Query by search•Query by trace ID•Upload a JSON trace file
要使用该方法:
1.从 Query 类型选择器中选择 Search。2.填写搜索表格:(和 Jaeger UI 基本一样)
Description
Jaeger query editor
要查询一个特定的 trace:
1.选择 TraceID 查询类型。2.在 Trace ID 字段中输入该 trace 的ID。
Screenshot of the Jaeger query editor with TraceID selected
JSON trace file 示例:
{
"data": [
{
"traceID": "2ee9739529395e31",
"spans": [
{
"traceID": "2ee9739529395e31",
"spanID": "2ee9739529395e31",
"flags": 1,
"operationName": "CAS",
"references": [],
"startTime": 1616095319593196,
"duration": 1004,
"tags": [
{
"key": "sampler.type",
"type": "string",
"value": "const"
}
],
"logs": [],
"processID": "p1",
"warnings": null
}
],
"processes": {
"p1": {
"serviceName": "loki-all",
"tags": [
{
"key": "jaeger.version",
"type": "string",
"value": "Go-2.25.0"
}
]
}
},
"warnings": null
}
],
"total": 0,
"limit": 0,
"offset": 0,
"errors": null
}
目前(2023/5/8)在 Grafana Dashboards registry[3], 还没有 Trace 相关的 Dashboard, Grafana Tempo 没有, Jaeger 也没有.
但是我关注到有一部分 panel 是适合用作 Trace Dashboard 展示的, 如:
•Traces
•Node Graph
应该在不远的将来就会有 Trace 相关的 Dashboards. 期待~
[1]
Grafana 系列文章: https://ewhisper.cn/tags/Grafana/
[2]
logfmt: https://brandur.org/logfmt
[3]
Grafana Dashboards registry: https://grafana.com/grafana/dashboards/