提交 2e273399 编写于 作者: 7 710leo

change stats

上级 22aef572
...@@ -54,6 +54,6 @@ func reportQueueSize() { ...@@ -54,6 +54,6 @@ func reportQueueSize() {
for { for {
time.Sleep(time.Second) time.Sleep(time.Second)
promstat.GaugeAlertQueueSize.WithLabelValues().Set(float64(EventQueue.Len())) promstat.GaugeAlertQueueSize.Set(float64(EventQueue.Len()))
} }
} }
...@@ -43,12 +43,12 @@ var ( ...@@ -43,12 +43,12 @@ var (
}, []string{"cluster"}) }, []string{"cluster"})
// 内存中的告警事件队列的长度 // 内存中的告警事件队列的长度
GaugeAlertQueueSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{ GaugeAlertQueueSize = prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: namespace, Namespace: namespace,
Subsystem: subsystem, Subsystem: subsystem,
Name: "alert_queue_size", Name: "alert_queue_size",
Help: "The size of alert queue.", Help: "The size of alert queue.",
}, []string{}) })
// 数据转发队列,各个队列的长度 // 数据转发队列,各个队列的长度
GaugeSampleQueueSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{ GaugeSampleQueueSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册