Documentation
¶
Index ¶
- Variables
- func Create(server *veneur.Server, name string, logger *logrus.Entry, config veneur.Config, ...) (sinks.MetricSink, error)
- func MigrateConfig(config *veneur.Config)
- func ParseConfig(name string, config interface{}) (veneur.MetricSinkConfig, error)
- func S3Path(hostname string, ft filetype) *string
- type S3Sink
- func (p *S3Sink) Flush(ctx context.Context, metrics []samplers.InterMetric) error
- func (p *S3Sink) FlushOtherSamples(ctx context.Context, samples []ssf.SSFSample)
- func (p *S3Sink) Name() string
- func (p *S3Sink) S3Post(hostname string, data io.ReadSeeker, ft filetype) error
- func (p *S3Sink) Start(traceClient *trace.Client) error
- type S3SinkConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var S3ClientUninitializedError = errors.New("s3 client has not been initialized")
Functions ¶
func Create ¶
func Create( server *veneur.Server, name string, logger *logrus.Entry, config veneur.Config, sinkConfig veneur.MetricSinkConfig, ) (sinks.MetricSink, error)
Create creates a new S3 sink for metrics. This function should match the signature of a value in veneur.MetricSinkTypes, and is intended to be passed into veneur.NewFromConfig to be called based on the provided configuration.
func MigrateConfig ¶
TODO(arnavdugar): Remove this once the old configuration format has been removed.
func ParseConfig ¶
func ParseConfig( name string, config interface{}, ) (veneur.MetricSinkConfig, error)
ParseConfig decodes the map config for an S3 sink into an S3SinkConfig struct.
Types ¶
type S3Sink ¶
type S3Sink struct { Hostname string Interval int Logger *logrus.Entry S3Bucket string Svc s3iface.S3API // contains filtered or unexported fields }
func (*S3Sink) FlushOtherSamples ¶
type S3SinkConfig ¶
type S3SinkConfig struct { AccessKeyID util.StringSecret `yaml:"access_key_id"` S3Bucket string `yaml:"s3_bucket"` Region string `yaml:"region"` SecretAccessKey util.StringSecret `yaml:"secret_access_key"` }
Click to show internal directories.
Click to hide internal directories.