系列文章

  • Grafana 系列文章

Explore Jaeger

你能够通过Explore查问和显示 Jaeger 的 trace。有 3 种办法:

  • Query by search
  • Query by trace ID
  • Upload a JSON trace file

Query by search

要应用该办法:

  1. Query 类型选择器中抉择 Search
  2. 填写搜寻表格:(和 Jaeger UI 根本一样)
NameDescription
Service返回 services 列表
Operation当你抉择一个有相干操作的 service 时,会弹出。抉择 all 以查问所有操作。
Tags设置具备logfmt格局值的标签,例如error=true db.statement="select * from User"
Min Duration过滤所有持续时间高于设定值的 traces。可能的值是1.2s, 100ms, 500us
Max Duration过滤所有持续时间低于设定值的 traces。可能的值是1.2s, 100ms, 500us
Limit限度返回的 traces 的数量。

Query by trace ID

要查问一个特定的 trace:

  1. 抉择 TraceID 查问类型。
  2. Trace ID 字段中输出该 trace 的ID。

Upload a JSON trace file

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}

是否有 Jaeger 的 Dashboard?

目前(2023/5/8)在 Grafana Dashboards registry, 还没有 Trace 相干的 Dashboard, Grafana Tempo 没有, Jaeger 也没有.

然而我关注到有一部分 panel 是适宜用作 Trace Dashboard 展现的, 如:

  • Traces
  • Node Graph

应该在不远的未来就会有 Trace 相干的 Dashboards. 期待~

三人行, 必有我师; 常识共享, 天下为公. 本文由东风微鸣技术博客 EWhisper.cn 编写.