Documentation ¶
Index ¶
- Variables
- func ClampCounterDelta(delta int64) uint64
- func WriteProcessMetrics(mw *Writer)
- type Counter
- type Gauge
- type Help
- type Metric
- type Registry
- type Scale
- type Writer
- func (mw *Writer) Flush() error
- func (mw *Writer) Reset(w io.Writer)
- func (mw *Writer) SetPrefix(prefix string) string
- func (mw *Writer) WriteFloat(name string, labelNames []string, labelValues []string, value float64)
- func (mw *Writer) WriteHeader(name string, typ, help string)
- func (mw *Writer) WriteInt(name string, labelNames []string, labelValues []string, value int64)
- func (mw *Writer) WriteUint(name string, labelNames []string, labelValues []string, value uint64)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRegistry = &Registry{}
Functions ¶
func ClampCounterDelta ¶
func WriteProcessMetrics ¶
func WriteProcessMetrics(mw *Writer)
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
func (*Counter) WriteMetricTo ¶
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
func (*Gauge) WriteMetricTo ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) WriteMetricsTo ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) WriteFloat ¶
func (*Writer) WriteHeader ¶
Click to show internal directories.
Click to hide internal directories.