tree: e66c909c0c5d0210fee5dc4c743acfdcc388c69c [path history] [tgz]
  1. go-client/
  2. go-server/
  3. README.md
  4. README_zh.md
metric/README.md

metric 示例

Backend

dubbo metric is a library of standard metrics that we can easily list the various metrics we care about in the RPC space, such as the number of calls per service, response time; And if you want to know more, there‘s also the distribution of various response times, the average response time.If you’re interested in the principle, you can go and see eBay 邓明:dubbo-go 中 metrics 的设计 .Now I'm going to use prometheus to show metric

Show turns

metric

Matters needing attention

prometheus.yml config

# my global config
global:
  scrape_interval: 120s
  evaluation_interval: 120s
  external_labels:
    monitor: 'metric-dubbo-go-server'
scrape_configs:
  - job_name: 'prometheus'
    scrape_interval: 120s
    static_configs:
      - targets: [ 'localhost:9090' ]

  - job_name: 'metric-dubbo-server'
    scheme: http
    scrape_interval: 10s
    static_configs:
      # local ip
      - targets: [ 'local ip:8080' ]

Pls. refer to HOWTO.md under the root directory to run this sample.