apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.3k stars 26.38k forks source link

Add metrics naming convention for prometheus #11321

Open fomeiherz opened 1 year ago

fomeiherz commented 1 year ago

Describe the proposal

Prometheus naming

Add prefixes (based on business scenarios)

For provider: dubbo.provider, such as dubbo.provider.rt.qps.seconds For consumer: dubbo.consumer, such as dubbo. consumer.rt.qps.seconds For registry: dubbo.registry, such as dubbo.registry.requests.total

Add suffix

Step 1: add base-units

Step 2: add suffix by metrics type

Step 3: add other suffix

songxiaosheng commented 1 year ago

It can be distinguished between the lower dubbo buried point specification and the Prometheus buried point specification, such as the second 可以区分下dubbo埋点规范和普罗米修斯埋点规范例如第二个

fomeiherz commented 1 year ago

I change title "for prometheus".

我修改了标题加上了 prometheus

jojocodeX commented 1 year ago

可以区分下场景,比如dubbo.registry. , dubbo.thread.

fomeiherz commented 1 year ago

可以区分下场景,比如dubbo.registry. , dubbo.thread.

dubbo.thread 这个使用在哪个场景?我补充到文档上

jojocodeX commented 1 year ago

可以区分下场景,比如dubbo.registry. , dubbo.thread.

I change title "for prometheus".

我修改了标题加上了 prometheus

可以区分下场景,比如dubbo.registry. , dubbo.thread.

dubbo.thread 这个使用在哪个场景?我补充到文档上

不同场景下的一种区分,比如 provider, dubbo.provider,类似