Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectMetrics ¶
func CollectMetrics(ctx context.Context, path, prefix string, labelNames, labelValues []string, cc *collector.CollectorContext)
CollectMetrics collects metrics by statics returned by a given url
Types ¶
type Statistic ¶
type Statistic struct { Name string `xml:"name"` Description string `xml:"description"` Kind string `xml:"kind"` Type string `xml:"type"` Unit string `xml:"unit"` Values struct { Value struct { Datum float64 `xml:"datum"` } `xml:"value"` } `xml:"values"` }
Statistic represents the statistic resource
type Statistics ¶
type Statistics struct {
Statistic []Statistic `xml:"statistic"`
}
Statistics is a collection of Statistics
Click to show internal directories.
Click to hide internal directories.