Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(logger logrus.FieldLogger, prometheusURL string, transport http.RoundTripper) (*Client, error)
type Metric ¶
type Metric struct { MetricType MetricType Name string Help string Unit string Comment string }
type MetricType ¶
type MetricType string
MetricType models the type of a metric.
const ( // Possible values for MetricType MetricTypeCounter MetricType = "counter" MetricTypeGauge MetricType = "gauge" MetricTypeHistogram MetricType = "histogram" MetricTypeGaugeHistogram MetricType = "gaugehistogram" MetricTypeSummary MetricType = "summary" MetricTypeInfo MetricType = "info" MetricTypeStateset MetricType = "stateset" MetricTypeUnknown MetricType = "unknown" )
Click to show internal directories.
Click to hide internal directories.