translator

package
v0.0.0-...-65ad924 Latest Latest
Warning

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

Go to latest
Published: May 8, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrometheusMetrics

func GetPrometheusMetrics(host string, port uint) (map[string]*dto.MetricFamily, error)

GetPrometheusMetrics scrapes metrics from the given host and port using /metrics handler.

func SendToStackdriver

func SendToStackdriver(service *v3.Service, config *config.GceConfig, ts []*v3.TimeSeries)

SendToStackdriver sends http request to Stackdriver to create the given timeserieses.

func TranslatePrometheusToStackdriver

func TranslatePrometheusToStackdriver(config *config.GceConfig, component string, metrics map[string]*dto.MetricFamily, whitelisted []string) []*v3.TimeSeries

TranslatePrometheusToStackdriver translates metrics in Prometheus format to Stackdriver format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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