Documentation
¶
Index ¶
- func Register(c Collector)
- func Unregister(c Collector)
- type Collector
- type Metrics
- func (m *Metrics) DecVectorCount()
- func (m *Metrics) GetMetrics() map[string]interface{}
- func (m *Metrics) IncCacheHit()
- func (m *Metrics) IncCacheMiss()
- func (m *Metrics) IncDeleteCount()
- func (m *Metrics) IncErrorCount()
- func (m *Metrics) IncVectorCount()
- func (m *Metrics) ObserveInsert(count int, duration float64)
- func (m *Metrics) ObserveSearch(count int, duration float64)
- func (m *Metrics) SetStorageSize(size float64)
- func (m *Metrics) SetVectorCount(count float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collector ¶
type Collector interface {
Collect(ch chan<- prometheus.Metric)
Describe(ch chan<- *prometheus.Desc)
}
Collector 收集器接口
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics 监控指标集合
func (*Metrics) GetMetrics ¶
GetMetrics 获取所有指标
func (*Metrics) ObserveInsert ¶
ObserveInsert 记录插入操作
func (*Metrics) ObserveSearch ¶
ObserveSearch 记录搜索操作
func (*Metrics) SetStorageSize ¶
SetStorageSize 设置存储大小
func (*Metrics) SetVectorCount ¶
SetVectorCount 设置向量计数
Click to show internal directories.
Click to hide internal directories.