tsdb

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RFC3339Python = "2006-01-02T15:04:05.000000"
)

Additional timestamp formats possibly used by sources of metric data

Variables

This section is empty.

Functions

func AddMetricsByHost

func AddMetricsByHost(instance string, value float64) (prometheus.Metric, error)

AddMetricsByHost ...

func NewHeartBeatMetricByHost

func NewHeartBeatMetricByHost(instance string, value float64) (prometheus.Metric, error)

NewHeartBeatMetricByHost ...

func NewPrometheusMetric

func NewPrometheusMetric(usetimestamp bool, format string, metric incoming.MetricDataFormat, index int) (prometheus.Metric, error)

NewPrometheusMetric converts one data source of a value list to a Prometheus metric.

Types

type TSDB

type TSDB interface {
	//prometheus specific reflect
	GetLabels() map[string]string
	GetMetricName(index int) string
	GetMetricDesc(index int) string
}

TSDB interface

Jump to

Keyboard shortcuts

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