awscsm

package
v1.247347.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSM

type CSM struct {
	Region          string `toml:"region"`
	AccessKey       string `toml:"access_key"`
	SecretKey       string `toml:"secret_key"`
	RoleARN         string `toml:"role_arn"`
	Profile         string `toml:"profile"`
	Filename        string `toml:"shared_credential_file"`
	Token           string `toml:"token"`
	MemoryLimitInMb int    `toml:"memory_limit_in_mb"`
	LogLevel        int    `toml:"log_level"`

	EndpointOverride string `toml:"endpoint_override"`
	// contains filtered or unexported fields
}

CSM structure houses the configuration retrieved from the configuration file. This also contains the sdkmetrics dataplane client which will be used to put aggregated metrics to.

func (*CSM) Close

func (c *CSM) Close() error

Close will flush remaining metrics in the queue

func (*CSM) Connect

func (c *CSM) Connect() error

Connect will bootstrap the client and add the user agent handler.

func (*CSM) Description

func (c *CSM) Description() string

Description will return the description of the CSM output plugin

func (*CSM) SampleConfig

func (c *CSM) SampleConfig() string

SampleConfig returns the sample config

func (*CSM) Write

func (c *CSM) Write(ms []telegraf.Metric) error

Write ...

type CSMWriter

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

CSMWriter used for the metametrics listener

func NewCSMWriter

func NewCSMWriter(svc csmiface.CSMAPI, env csm.HostEnvironment) *CSMWriter

NewCSMWriter return a new CSM writer

func (*CSMWriter) Write

func (writer *CSMWriter) Write(metrics metametrics.Metrics) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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