You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
617 B
27 lines
617 B
package fanout
|
|
|
|
import (
|
|
"github.com/bilibili/kratos/pkg/stat/metric"
|
|
)
|
|
|
|
const (
|
|
_metricNamespace = "sync"
|
|
_metricSubSystem = "pipeline_fanout"
|
|
)
|
|
|
|
var (
|
|
_metricChanSize = metric.NewGaugeVec(&metric.GaugeVecOpts{
|
|
Namespace: _metricNamespace,
|
|
Subsystem: _metricSubSystem,
|
|
Name: "chan_len",
|
|
Help: "sync pipeline fanout current channel size.",
|
|
Labels: []string{"name"},
|
|
})
|
|
_metricCount = metric.NewCounterVec(&metric.CounterVecOpts{
|
|
Namespace: _metricNamespace,
|
|
Subsystem: _metricSubSystem,
|
|
Name: "process_count",
|
|
Help: "process count",
|
|
Labels: []string{"name"},
|
|
})
|
|
)
|
|
|