Documentation ¶
Overview ¶
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CollectLatency = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "inspector_runtime_collectlatency", Help: "net-exporter metrics collect latency", }, []string{"node", "probe"}, ) )
Functions ¶
Types ¶
type EServer ¶
type EServer struct { proto.UnimplementedInspectorServer // contains filtered or unexported fields }
func NewEServer ¶
func NewEServer(ctx context.Context, config EventConfig) *EServer
func (*EServer) QueryMetric ¶
func (e *EServer) QueryMetric(_ context.Context, _ *proto.QueryMetricRequest) (*proto.QueryMetricResponse, error)
func (*EServer) WatchEvent ¶
func (e *EServer) WatchEvent(_ *proto.WatchRequest, srv proto.Inspector_WatchEventServer) error
type EventConfig ¶
type MServer ¶
type MServer struct {
// contains filtered or unexported fields
}
func NewMServer ¶
func NewMServer(ctx context.Context, config MetricConfig) *MServer
func (*MServer) Close ¶
func (s *MServer) Close()
Close if cache process loop exited, close the metric server will be stuck, check is first
func (*MServer) Collect ¶
func (s *MServer) Collect(ch chan<- prometheus.Metric)
func (*MServer) Describe ¶
func (s *MServer) Describe(ch chan<- *prometheus.Desc)
Describe get all description from probe module
Click to show internal directories.
Click to hide internal directories.