Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeString ¶
func LabelPairsToText ¶
func LabelPairsToText(labels []metrics.LabelPair, additionalName, additionalValue string, out io.Writer) error
LabelPairsToText converts a slice of LabelPair plus the explicitly given additional label pair into text format and writes it to 'out'. escaped as required by the text format, and enclosed in '{...}'.
func WriteSample ¶
func WriteSample(name string, m *metrics.MetricData, labelName, labelValue string, value float64, out io.Writer) error
WriteSample writes a single sample in text format to out.
Types ¶
type MemoryExporter ¶
func NewMemoryExporter ¶
func NewMemoryExporter() *MemoryExporter
NewMemoryExporter create a MemoryExporter object.
func (*MemoryExporter) DumpRegistry ¶
func (e *MemoryExporter) DumpRegistry(registrys []*metrics.Registry)
func (*MemoryExporter) GetMetric ¶
func (e *MemoryExporter) GetMetric() (metrics map[string]*metrics.MetricFamily)
Click to show internal directories.
Click to hide internal directories.