Documentation ¶
Index ¶
- func CreateMetricSink(server *veneur.Server, name string, logger *logrus.Entry, config veneur.Config, ...) (sinks.MetricSink, error)
- func MigrateConfig(conf *veneur.Config)
- func ParseMetricConfig(name string, config interface{}) (veneur.MetricSinkConfig, error)
- type PrometheusMetricSink
- func (sink *PrometheusMetricSink) Flush(ctx context.Context, interMetrics []samplers.InterMetric) error
- func (sink *PrometheusMetricSink) FlushOtherSamples(ctx context.Context, samples []ssf.SSFSample)
- func (sink *PrometheusMetricSink) Name() string
- func (sink *PrometheusMetricSink) Start(traceClient *trace.Client) error
- type PrometheusMetricSinkConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMetricSink ¶ added in v14.2.0
func MigrateConfig ¶ added in v14.2.0
func MigrateConfig(conf *veneur.Config)
func ParseMetricConfig ¶ added in v14.2.0
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
type PrometheusMetricSinkConfig ¶ added in v14.2.0
Click to show internal directories.
Click to hide internal directories.