Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.
}
Family mirrors the MetricFamily proto message.
type Histogram ¶
type Histogram struct {
Labels map[string]string `json:"labels,omitempty"`
Buckets map[string]string `json:"buckets,omitempty"`
Count string `json:"count"`
Sum string `json:"sum"`
}
Histogram mirrors the Histogram proto message.
type Metric ¶
type Metric struct {
Labels map[string]string `json:"labels,omitempty"`
Value string `json:"value"`
}
Metric is for all "single value" metrics, i.e. Counter, Gauge, and Untyped.
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
func NewPrometheus ¶
func NewPrometheus() *Prometheus
Click to show internal directories.
Click to hide internal directories.