prometheus

package
v0.0.0-...-160db18 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddResult

func AddResult(newResult []float64, kind string) result.ResultType

func DoPrometheusQuery

func DoPrometheusQuery(cfg config.ScrapeConfig)

DoPrometheusQuery will run queries against Prometheus endpoint

func NewBearerAuthRoundTripper

func NewBearerAuthRoundTripper(bearer string, rt http.RoundTripper) (http.RoundTripper, error)

Types

type TimePoint

type TimePoint [2]float64

type TimeSeries

type TimeSeries struct {
	Name   string
	Points TimeSeriesPoints
	Tags   []rawData
}

type TimeSeriesPoints

type TimeSeriesPoints []TimePoint

Jump to

Keyboard shortcuts

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