Versions in this module Expand all Collapse all v1 v1.0.1 May 18, 2017 Changes in this version + var ErrIntOverflowStatus = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthStatus = fmt.Errorf("proto: negative length found during unmarshaling") + type MetricsRecorder struct + func NewMetricsRecorder(clock *hlc.Clock) *MetricsRecorder + func (mr *MetricsRecorder) AddNode(reg *metric.Registry, desc roachpb.NodeDescriptor, startedAt int64, ...) + func (mr *MetricsRecorder) AddStore(store storeMetrics) + func (mr *MetricsRecorder) GetStatusSummary() *NodeStatus + func (mr *MetricsRecorder) GetTimeSeriesData() []tspb.TimeSeriesData + func (mr *MetricsRecorder) MarshalJSON() ([]byte, error) + func (mr *MetricsRecorder) PrintAsText(w io.Writer) error + func (mr *MetricsRecorder) WriteStatusSummary(ctx context.Context, db *client.DB) error + type NodeStatus struct + Args []string + BuildInfo cockroach_build.Info + Desc cockroach_roachpb.NodeDescriptor + Env []string + Metrics map[string]float64 + StartedAt int64 + StoreStatuses []StoreStatus + UpdatedAt int64 + func (*NodeStatus) Descriptor() ([]byte, []int) + func (*NodeStatus) ProtoMessage() + func (m *NodeStatus) Marshal() (dAtA []byte, err error) + func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error) + func (m *NodeStatus) Reset() + func (m *NodeStatus) Size() (n int) + func (m *NodeStatus) String() string + func (m *NodeStatus) Unmarshal(dAtA []byte) error + type RuntimeStatSampler struct + BuildTimestamp *metric.Gauge + CPUSysNS *metric.Gauge + CPUSysPercent *metric.GaugeFloat64 + CPUUserNS *metric.Gauge + CPUUserPercent *metric.GaugeFloat64 + CgoAllocBytes *metric.Gauge + CgoCalls *metric.Gauge + CgoTotalBytes *metric.Gauge + FDOpen *metric.Gauge + FDSoftLimit *metric.Gauge + GcCount *metric.Gauge + GcPauseNS *metric.Gauge + GcPausePercent *metric.GaugeFloat64 + GoAllocBytes *metric.Gauge + GoTotalBytes *metric.Gauge + Goroutines *metric.Gauge + Rss *metric.Gauge + Uptime *metric.Gauge + func MakeRuntimeStatSampler(clock *hlc.Clock) RuntimeStatSampler + func (rsr *RuntimeStatSampler) SampleEnvironment(ctx context.Context) + type StoreStatus struct + Desc cockroach_roachpb.StoreDescriptor + Metrics map[string]float64 + func (*StoreStatus) Descriptor() ([]byte, []int) + func (*StoreStatus) ProtoMessage() + func (m *StoreStatus) Marshal() (dAtA []byte, err error) + func (m *StoreStatus) MarshalTo(dAtA []byte) (int, error) + func (m *StoreStatus) Reset() + func (m *StoreStatus) Size() (n int) + func (m *StoreStatus) String() string + func (m *StoreStatus) Unmarshal(dAtA []byte) error