Documentation
¶
Overview ¶
Package metric provides utilities to rewrite metrics based on a set of translators
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶ added in v0.0.1
HTTPClient submits requests to an HTTP server.
type Writer ¶ added in v0.0.1
type Writer struct {
// contains filtered or unexported fields
}
Writer copies metrics from a source to destination, applying a set of translators
func NewWriter ¶ added in v0.0.1
func NewWriter( URL string, tlsConfig *tls.Config, translators []translator.Translator, ) (*Writer, error)
NewWriter builds a new writer that fetches metrics from the named location, using the named translators.
func (*Writer) Copy ¶ added in v0.0.1
Copy reads the metrics from source, applies the translators and outputs the resulting metrics to the named writer.
func (*Writer) GetTranslators ¶ added in v0.0.1
func (w *Writer) GetTranslators() []translator.Translator
GetTranslators returns the translators.
func (*Writer) SetTranslators ¶ added in v0.0.1
func (w *Writer) SetTranslators(translators []translator.Translator)
SetTranslators replaces the translators with new ones.
Click to show internal directories.
Click to hide internal directories.