You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ju...@apache.org on 2021/10/27 10:19:02 UTC

[dubbo-go] 01/01: Merge pull request #1540 from apache/ftr/metrics

This is an automated email from the ASF dual-hosted git repository.

justxuewei pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git

commit c378031a059b078171edcbc1f3a3b19214486318
Merge: a45fd29 4d4fb6e
Author: Xuewei Niu <a...@nxw.name>
AuthorDate: Wed Oct 27 18:18:54 2021 +0800

    Merge pull request #1540 from apache/ftr/metrics
    
    fix: add metrics basic support

 common/extension/metrics.go                        |  8 +-
 common/extension/metrics_test.go                   |  4 +-
 config/consumer_config.go                          |  2 +-
 config/metric_config.go                            | 88 ++++++++++----------
 config/provider_config.go                          |  2 +-
 config/reference_config.go                         |  2 +-
 config/router_config.go                            |  1 +
 config/service_config.go                           |  4 +-
 config/testdata/application.yaml                   |  4 +-
 config/testdata/config/app/application.yaml        |  2 +-
 config/testdata/config/provider/application.yaml   |  4 +-
 .../config/provider/registry_application.yaml      |  4 +-
 config/testdata/consumer_config.yml                |  2 +-
 .../testdata/consumer_config_with_configcenter.yml |  2 +-
 .../testdata/consumer_config_withoutProtocol.yml   |  2 +-
 config/testdata/provider_config.yml                |  2 +-
 .../testdata/provider_config_withoutProtocol.yml   |  2 +-
 config_center/apollo/mockDubbogo.yaml.json         |  1 +
 filter/metrics/filter.go                           |  2 +-
 filter/metrics/filter_test.go                      |  4 +-
 go.mod                                             |  3 +-
 go.sum                                             | 12 +++
 metrics/prometheus/reporter.go                     | 94 ++++++++++++----------
 metrics/prometheus/reporter_test.go                |  3 +-
 metrics/reporter.go                                | 25 +++++-
 25 files changed, 158 insertions(+), 121 deletions(-)