Grafana系列-统一展示-10-Explore Jaeger

系列文章

Explore Jaeger

你可以通过Explore查询和显示 Jaeger 的 trace。有 3 种方法:

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

要使用该方法:

  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 的数量。

Jaeger query editor

Query by trace ID

要查询一个特定的 trace:

  1. 选择 TraceID 查询类型。
  2. Trace ID 字段中输入该 trace 的ID。

Screenshot of the Jaeger query editor with TraceID selected

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 编写.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值