mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-04 00:55:59 +08:00
ad47590e13
Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
17 lines
450 B
Go
17 lines
450 B
Go
package prommetrics
|
|
|
|
import ginProm "github.com/openimsdk/open-im-server/v3/pkg/common/ginprometheus"
|
|
|
|
/*
|
|
labels := prometheus.Labels{"label_one": "any", "label_two": "value"}
|
|
ApiCustomCnt.MetricCollector.(*prometheus.CounterVec).With(labels).Inc().
|
|
*/
|
|
var (
|
|
ApiCustomCnt = &ginProm.Metric{
|
|
Name: "custom_total",
|
|
Description: "Custom counter events.",
|
|
Type: "counter_vec",
|
|
Args: []string{"label_one", "label_two"},
|
|
}
|
|
)
|