Documentation ¶
Overview ¶
Package storegw xxx
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStoreSvr ¶
func GetStoreSvr(logger log.Logger, reg *prometheus.Registry, conf *config.StoreConf) (storepb.StoreServer, error)
GetStoreSvr 工厂模式
Types ¶
type Group ¶
type Group struct {
targetgroup.Group
}
Group 兼容 targetgroup.Group, 老版本没有MarshalJSON, 按最新版本 参考 https://github.com/prometheus/prometheus/blob/v2.36.2/discovery/targetgroup/targetgroup.go#L96
func (Group) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
type Store ¶
type Store struct { *config.StoreConf Address string Server *grpcserver.Server // contains filtered or unexported fields }
Store GW Store 基类
type StoreFactory ¶
type StoreFactory func(logger log.Logger, reg *prometheus.Registry, conf *config.StoreConf) (storepb.StoreServer, error)
StoreFactory 工厂模式
type StoreGW ¶
type StoreGW struct { GRPCAdvertiseIP string // contains filtered or unexported fields }
StoreGW Store 管理结构
func NewStoreGW ¶
func NewStoreGW(ctx context.Context, logger log.Logger, reg *prometheus.Registry, grpcAdvertiseIP string, grpcAdvertisePortRangeStr string, confs []*config.StoreConf, storeFunc StoreFactory) (*StoreGW, error)
NewStoreGW :
func (*StoreGW) GetStoreAddrs ¶
GetStoreAddrs 本地 store 地址
Directories ¶
Path | Synopsis |
---|---|
Package bcssystem bcs system
|
Package bcssystem bcs system |
source
Package source client
|
Package source client |
source/base
Package base xxx
|
Package base xxx |
source/bk_monitor
Package bkmonitor bk monitor
|
Package bkmonitor bk monitor |
source/compute
Package compute cluster operate
|
Package compute cluster operate |
source/computev2
Package computev2 cluster operate
|
Package computev2 cluster operate |
source/federation
Package federation Factory
|
Package federation Factory |
source/prometheus
Package prometheus prometheus
|
Package prometheus prometheus |
source/vcluster
Package vcluster cluster operate
|
Package vcluster cluster operate |
Package bkmonitor bk monitor
|
Package bkmonitor bk monitor |
Package clientutil xxx
|
Package clientutil xxx |
Package prometheus ...
|
Package prometheus ... |
Package staticmetrics ...
|
Package staticmetrics ... |
Package suanlicpu implements the store node API on top of the Prometheus remote read API.
|
Package suanlicpu implements the store node API on top of the Prometheus remote read API. |
Package suanligpunative implements the store node API on top of the Prometheus remote read API.
|
Package suanligpunative implements the store node API on top of the Prometheus remote read API. |
Click to show internal directories.
Click to hide internal directories.