metricsstore

package
v0.0.51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsStore

type MetricsStore struct {
	// contains filtered or unexported fields
}

MetricsStore stores metrics for a single scrape by a Prometheus server.

func NewMetricsStore

func NewMetricsStore(headers []string) *MetricsStore

NewMetricsStore returns a new MetricsStore

func (*MetricsStore) Add

func (s *MetricsStore) Add(family ...*metric.Family)

func (*MetricsStore) WriteAll

func (s *MetricsStore) WriteAll(w io.Writer) error

WriteAll writes all metrics of the store into the given writer, zipped with the help text of each metric family.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL