Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricTypePtr ¶
func MetricTypePtr(mt dto.MetricType) *dto.MetricType
Types ¶
type Family ¶
type Family struct { Name string `json:"name"` Help string `json:"help"` Type string `json:"type"` Metrics []interface{} `json:"metrics,omitempty"` // Either metric or summary. }
Family mirrors the MetricFamily proto message.
func NewFamily ¶
func NewFamily(dtoMF *dto.MetricFamily) *Family
NewFamily consumes a MetricFamily and transforms it to the local Family type.
type Histogram ¶
type Histogram struct { Labels map[string]string `json:"labels,omitempty"` TimestampMs string `json:"timestamp_ms,omitempty"` Buckets map[string]string `json:"buckets,omitempty"` Count string `json:"count"` Sum string `json:"sum"` }
Histogram mirrors the Histogram proto message.
Click to show internal directories.
Click to hide internal directories.