Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchMetricFamilies ¶
func FetchMetricFamilies(url string, ch chan<- *dto.MetricFamily)
FetchMetricFamilies does stuff
func ParseResponse ¶
func ParseResponse(resp *http.Response, ch chan<- *dto.MetricFamily)
Types ¶
type Family ¶
type Family struct { Time time.Time Name string `json:"name"` Help string `json:"help"` Type string `json:"type"` Metrics []interface{} `json:"metrics,omitempty"` // Either metric or summary. }
MetricFamily holds the family... :)
func NewFamily ¶
func NewFamily(dtoMF *dto.MetricFamily) *Family
func (*Family) ToOpenTSDBv1 ¶
Click to show internal directories.
Click to hide internal directories.