plugin

package
v0.0.0-...-cfe866f Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GaussDBPlugin

type GaussDBPlugin struct {
	Host     string `toml:"host"`
	Port     int    `toml:"port"`
	User     string `toml:"user"`
	Password string `toml:"password"`
	Dbname   string `toml:"dbname"`

	Log telegraf.Logger `toml:"-"`
	// contains filtered or unexported fields
}

GaussDBPlugin Structure of the plugin about GaussDB

func (*GaussDBPlugin) Description

func (p *GaussDBPlugin) Description() string

Description Return a short description of the plugin Returns a short description of the plugin

func (*GaussDBPlugin) Gather

func (p *GaussDBPlugin) Gather(accumulator telegraf.Accumulator) error

func (*GaussDBPlugin) Init

func (p *GaussDBPlugin) Init() error

func (*GaussDBPlugin) SampleConfig

func (p *GaussDBPlugin) SampleConfig() string

SampleConfig Return a default configuration

func (*GaussDBPlugin) Start

func (p *GaussDBPlugin) Start(ctx context.Context) error

Start Plugin

func (*GaussDBPlugin) Stop

func (p *GaussDBPlugin) Stop()

Jump to

Keyboard shortcuts

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