Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDesc ¶
func NewDesc(subsystem, name, help string, labels []string, constLabels prometheus.Labels) *prometheus.Desc
NewDesc returns new metric description in terms of Prometheus client
Types ¶
type Metric ¶
type Metric struct {
// contains filtered or unexported fields
}
Metric is a base metric struct with common fields
func New ¶
func New(t prometheus.ValueType, subsystem, name, help string, labels []string) *Metric
New creates new metric
func NewWithConstLabels ¶
func NewWithConstLabels(t prometheus.ValueType, subsystem, name, help string, labels []string, constLabels prometheus.Labels) *Metric
NewWithConstLabels returns new metric with const labels
func (*Metric) Type ¶
func (m *Metric) Type() prometheus.ValueType
Type returns Prometheus metric type
Click to show internal directories.
Click to hide internal directories.