prometheus

package
v14.2.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMetricSink added in v14.2.0

func CreateMetricSink(
	server *veneur.Server, name string, logger *logrus.Entry,
	config veneur.Config, sinkConfig veneur.MetricSinkConfig,
) (sinks.MetricSink, error)

func MigrateConfig added in v14.2.0

func MigrateConfig(conf *veneur.Config)

func ParseMetricConfig added in v14.2.0

func ParseMetricConfig(name string, config interface{}) (veneur.MetricSinkConfig, error)

Types

type PrometheusMetricSink added in v14.2.0

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

In exporting to Prometheus as a metric sink, we are tentatively choosing to use https://github.com/prometheus/statsd_exporter.

func (*PrometheusMetricSink) Flush added in v14.2.0

func (sink *PrometheusMetricSink) Flush(ctx context.Context, interMetrics []samplers.InterMetric) error

Flush sends metrics to the Statsd Exporter in batches.

func (*PrometheusMetricSink) FlushOtherSamples added in v14.2.0

func (sink *PrometheusMetricSink) FlushOtherSamples(ctx context.Context, samples []ssf.SSFSample)

FlushOtherSamples sends events to SignalFx. This is a no-op for Prometheus sinks as Prometheus does not support other samples.

func (*PrometheusMetricSink) Name added in v14.2.0

func (sink *PrometheusMetricSink) Name() string

func (*PrometheusMetricSink) Start added in v14.2.0

func (sink *PrometheusMetricSink) Start(traceClient *trace.Client) error

type PrometheusMetricSinkConfig added in v14.2.0

type PrometheusMetricSinkConfig struct {
	RepeaterAddress string `yaml:"repeater_address"`
	NetworkType     string `yaml:"network_type"`
}

Jump to

Keyboard shortcuts

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