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
prometheus Need a legitimate name,Details pls see dubbo-go
Modify the local real ip prometheus.yml
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.