s3

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 License: MIT Imports: 15 Imported by: 0

README

S3 Output Plugin

This plugin stores the Grafana Dashboard and DataSource JSON's to specified AWS S3 Bucket.

Configuration:
# Send grafana json to s3
[[outputs.s3]]
  bucket = "<bucket-name>" # required
  access_key = "$ACCESS_KEY" # required
  secret_key = "$SECRET_KEY" # required
  region = "s3-bucket-region"
  bucketPrefix = "<prefix>"
  output_format = "zip" # zip, dir

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3

type S3 struct {
	Bucket       string `toml:"bucket"`
	AccessKey    string `toml:"access_key"`
	SecretKey    string `toml:"secret_key"`
	Region       string `toml:"region"`
	BucketPrefix string `toml:"bucket_prefix"`
	OutputFormat string `toml:"output_format"`
}

func (*S3) Connect

func (f *S3) Connect() error

func (*S3) Description

func (f *S3) Description() string

func (*S3) SampleConfig

func (f *S3) SampleConfig() string

func (*S3) Write

func (f *S3) Write(metric gde.Metric) error

Jump to

Keyboard shortcuts

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