mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 10:52:33 +08:00
test:for test alert
This commit is contained in:
parent
8931454591
commit
f8a453d0c5
@ -20,6 +20,7 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/OpenIMSDK/tools/mw"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
@ -119,6 +120,10 @@ func (m *MsgTransfer) Start(prometheusPort int) error {
|
||||
}*/
|
||||
////////////////////////////
|
||||
if config.Config.Prometheus.Enable {
|
||||
go func() {
|
||||
time.Sleep(7 * time.Minute)
|
||||
prommetrics.MsgInsertRedisFailedCounter.Inc()
|
||||
}()
|
||||
reg := prometheus.NewRegistry()
|
||||
reg.MustRegister(
|
||||
collectors.NewGoCollector(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user