默认监控指标命令

当用户未接入 prometheus 时可以使用默认的监控指标命令

查询所有监控指标

命令:metrics_default

示例:

  1. > telnet 127.0.0.1 22222
  2. > metrics_default

输出:

  1. Trying 127.0.0.1...
  2. Connected to localhost.
  3. Escape character is '^]'.
  4. ___ __ __ ___ ___ ____
  5. / _ \ / / / // _ ) / _ ) / __ \
  6. / // // /_/ // _ |/ _ |/ /_/ /
  7. /____/ \____//____//____/ \____/
  8. dubbo>metrics_default
  9. dubbo.registry.directory.num.disable.total{application.module.id=1.1,application.name=dubbo-springboot-demo-provider,application.version=,git.commit.id=,hostname=hujundeMacBook-Pro.local,interface=dubbo-springboot-demo-provider/org.apache.dubbo.metrics.service.MetricsService:1.0.0,ip=10.224.214.80,} 0.0
  10. dubbo.register.rt.milliseconds.max{application.module.id=1.1,application.name=dubbo-springboot-demo-provider,application.version=,git.commit.id=,hostname=hujundeMacBook-Pro.local,ip=10.224.214.80,} 153.0

根据关键词查询监控指标

命令:metrics_default {applicationName} {keyword}

applicationName: 应用名称
keyword: 关键词

示例:

  1. > telnet 127.0.0.1 22222
  2. > metrics_default dubbo-springboot-demo-provider registry

输出:

  1. Trying 127.0.0.1...
  2. Connected to localhost.
  3. Escape character is '^]'.
  4. ___ __ __ ___ ___ ____
  5. / _ \ / / / // _ ) / _ ) / __ \
  6. / // // /_/ // _ |/ _ |/ /_/ /
  7. /____/ \____//____//____/ \____/
  8. dubbo> metrics_default dubbo-springboot-demo-provider registry
  9. dubbo.registry.subscribe.num.total{application.module.id=1.1,application.name=dubbo-springboot-demo-provider,application.version=,git.commit.id=,hostname=hujundeMacBook-Pro.local,ip=10.224.214.80,} 0.0
  10. dubbo.registry.directory.num.disable.total{application.module.id=1.1,application.name=dubbo-springboot-demo-provider,application.version=,git.commit.id=,hostname=hujundeMacBook-Pro.local,interface=dubbo-springboot-demo-provider/org.apache.dubbo.metrics.service.MetricsService:1.0.0,ip=10.224.214.80,} 0.0

最后修改 September 13, 2024: Refactor website structure (#2860) (1a4b998f54b)