metric/

directory
v1.5.6-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2021 License: Apache-2.0

README

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.

Directories

Path Synopsis
go-client
cmd
pkg
go-server
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL