rds

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

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

func NewCollector

func NewCollector(sess *session.Session, i *rds.DBInstance) (*Collector, error)

func (*Collector) Close

func (c *Collector) Close()

func (*Collector) Collect

func (c *Collector) Collect(ch chan<- prometheus.Metric)

func (*Collector) Describe

func (c *Collector) Describe(ch chan<- *prometheus.Desc)

type DbCollector

type DbCollector interface {
	prometheus.Collector
	Close() error
}

type DbCollectorConf

type DbCollectorConf struct {
	User           string
	Password       string
	ConnectTimeout time.Duration
	QueryTimeout   time.Duration

	LogsScrapeInterval time.Duration
	DbScrapeInterval   time.Duration
}

type Discoverer

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

func NewDiscoverer

func NewDiscoverer(reg prometheus.Registerer, awsSession *session.Session) *Discoverer

func (*Discoverer) Run

func (d *Discoverer) Run()

type LogReader

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

supports only Postgresql RDS log for now need more work to support for example Mysql RDS logs, because of rotation

func NewLogReader

func NewLogReader(api rdsiface.RDSAPI, instanceId *string, ch chan<- logparser.LogEntry, refreshInterval time.Duration, logger logger.Logger) *LogReader

func (*LogReader) Stop

func (r *LogReader) Stop()

Jump to

Keyboard shortcuts

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