veneur: github.com/stripe/veneur/plugins Index | Files | Directories

package plugins

import "github.com/stripe/veneur/plugins"

Index

Package Files

plugins.go

type Plugin Uses

type Plugin interface {
    Flush(ctx context.Context, metrics []samplers.InterMetric) error
    Name() string
}

Plugin flushes the metrics provided to an arbitrary destination. The metrics slice may be shared between plugins, so the plugin may not write to it or modify any of its components. The name should be a short, lowercase, snake-cased identifier for the plugin. When a plugin is registered, the number of metrics flushed successfully and the number of errors encountered are automatically reported by veneur, using the plugin name.

Directories

PathSynopsis
localfile
s3
s3/mock

Package plugins imports 2 packages (graph) and is imported by 13 packages. Updated 2019-09-28. Refresh now. Tools for package owners.