Documentation ¶
Overview ¶
Package prometheus ...
Index ¶
- type Config
- type PromStore
- func (s *PromStore) Info(ctx context.Context, r *storepb.InfoRequest) (*storepb.InfoResponse, error)
- func (s *PromStore) LabelNames(ctx context.Context, r *storepb.LabelNamesRequest) (*storepb.LabelNamesResponse, error)
- func (s *PromStore) LabelValues(ctx context.Context, r *storepb.LabelValuesRequest) (*storepb.LabelValuesResponse, error)
- func (s *PromStore) Series(r *storepb.SeriesRequest, srv storepb.Store_SeriesServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { URL string `yaml:"url" mapstructure:"url"` // prometheus api url ClusterID string `yaml:"cluster_id" mapstructure:"cluster_id"` ExternalLabels map[string]string `yaml:"external_labels" mapstructure:"external_labels"` }
Config 配置
type PromStore ¶
type PromStore struct {
// contains filtered or unexported fields
}
PromStore implements the store node API on top of the remote read API.
func (*PromStore) Info ¶
func (s *PromStore) Info(ctx context.Context, r *storepb.InfoRequest) (*storepb.InfoResponse, error)
Info 返回元数据信息
func (*PromStore) LabelNames ¶
func (s *PromStore) LabelNames(ctx context.Context, r *storepb.LabelNamesRequest) (*storepb.LabelNamesResponse, error)
LabelNames 返回 labels 列表
func (*PromStore) LabelValues ¶
func (s *PromStore) LabelValues(ctx context.Context, r *storepb.LabelValuesRequest) (*storepb.LabelValuesResponse, error)
LabelValues 返回 label values 列表
func (*PromStore) Series ¶
func (s *PromStore) Series(r *storepb.SeriesRequest, srv storepb.Store_SeriesServer) error
Series 返回时序数据
Click to show internal directories.
Click to hide internal directories.