Documentation
¶
Index ¶
- type Metric
- type PrometheusCollector
- func (c *PrometheusCollector) Export() string
- func (c *PrometheusCollector) GetMetric(name string) *Metric
- func (c *PrometheusCollector) Inc(name string, labels map[string]string)
- func (c *PrometheusCollector) Observe(name string, value float64, labels map[string]string)
- func (c *PrometheusCollector) Set(name string, value float64, labels map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusCollector ¶
type PrometheusCollector struct {
// contains filtered or unexported fields
}
func NewPrometheusCollector ¶
func NewPrometheusCollector() *PrometheusCollector
func (*PrometheusCollector) Export ¶
func (c *PrometheusCollector) Export() string
func (*PrometheusCollector) GetMetric ¶
func (c *PrometheusCollector) GetMetric(name string) *Metric
func (*PrometheusCollector) Inc ¶
func (c *PrometheusCollector) Inc(name string, labels map[string]string)
Click to show internal directories.
Click to hide internal directories.