Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ConfigCheckedAt time.Time
)
Functions ¶
func MetricsToPB ¶
func MetricsToPB(metrics map[string]*types.ClusterMetric) *pb.GetMetricsResponse
func NewGRPCServer ¶
Types ¶
type MetricConfig ¶
type Server ¶
type Server struct { ListenAddr string PrometheusServer string ConfigFile string // contains filtered or unexported fields }
func (*Server) GetMetrics ¶
func (s *Server) GetMetrics(ctx context.Context, req *pb.GetMetricsRequest) (*pb.GetMetricsResponse, error)
func (*Server) Watch ¶
func (s *Server) Watch(req *pb.WatchRequest, srv pb.MetricsService_WatchServer) error
Click to show internal directories.
Click to hide internal directories.