aws

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discoverer

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

func NewDiscoverer

func NewDiscoverer(cfg *config.AWSConfig, reg prometheus.Registerer) (*Discoverer, error)

func (*Discoverer) ClientConfig

func (d *Discoverer) ClientConfig(serviceName string, cfgs ...*aws.Config) client.Config

func (*Discoverer) Collect

func (d *Discoverer) Collect(ch chan<- prometheus.Metric)

func (*Discoverer) Describe

func (d *Discoverer) Describe(ch chan<- *prometheus.Desc)

func (*Discoverer) Stop

func (d *Discoverer) Stop()

func (*Discoverer) Update

func (d *Discoverer) Update(cfg *config.AWSConfig) error

type ECCollector

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

func NewECCollector

func NewECCollector(region string, cluster *elasticache.CacheCluster, node *elasticache.CacheNode) *ECCollector

func (*ECCollector) Collect

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

func (*ECCollector) Describe

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

func (*ECCollector) Stop

func (c *ECCollector) Stop()

type LogReader

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

func NewLogReader

func NewLogReader(discoverer *Discoverer, instanceId *string, ch chan<- logparser.LogEntry) *LogReader

func (*LogReader) Stop

func (r *LogReader) Stop()

type RDSAuroraDiskIO

type RDSAuroraDiskIO struct {
	Device          string   `json:"device"`
	ReadLatency     *float64 `json:"readLatency"`
	WriteLatency    *float64 `json:"writeLatency"`
	WriteThroughput *float64 `json:"writeThroughput"`
	ReadThroughput  *float64 `json:"readThroughput"`
	ReadIOsPS       *float64 `json:"readIOsPS"`
	WriteIOsPS      *float64 `json:"writeIOsPS"`
	DiskQueueDepth  *float64 `json:"diskQueueDepth"`
}

type RDSCPUUtilization

type RDSCPUUtilization struct {
	Guest  float64 `json:"guest"`
	Irq    float64 `json:"irq"`
	System float64 `json:"system"`
	Wait   float64 `json:"wait"`
	Idle   float64 `json:"idle"`
	User   float64 `json:"user"`
	Steal  float64 `json:"steal"`
	Nice   float64 `json:"nice"`
	Total  float64 `json:"total"`
}

type RDSCollector

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

func NewRDSCollector

func NewRDSCollector(discoverer *Discoverer, region string, instance *rds.DBInstance) *RDSCollector

func (*RDSCollector) Collect

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

func (*RDSCollector) Describe

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

func (*RDSCollector) Stop

func (c *RDSCollector) Stop()

type RDSFileSys

type RDSFileSys struct {
	MaxFiles   int64  `json:"maxFiles"`
	MountPoint string `json:"mountPoint"`
	Name       string `json:"name"`
	Total      int64  `json:"total"`
	Used       int64  `json:"used"`
	UsedFiles  int64  `json:"usedFiles"`
}

type RDSMemory

type RDSMemory struct {
	Writeback      int64 `json:"writeback"`
	HugePagesFree  int64 `json:"hugePagesFree"`
	HugePagesRsvd  int64 `json:"hugePagesRsvd"`
	HugePagesSurp  int64 `json:"hugePagesSurp"`
	Cached         int64 `json:"cached"`
	HugePagesSize  int64 `json:"hugePagesSize"`
	Free           int64 `json:"free"`
	HugePagesTotal int64 `json:"hugePagesTotal"`
	Inactive       int64 `json:"inactive"`
	PageTables     int64 `json:"pageTables"`
	Dirty          int64 `json:"dirty"`
	Mapped         int64 `json:"mapped"`
	Active         int64 `json:"active"`
	Total          int64 `json:"total"`
	Slab           int64 `json:"slab"`
	Buffers        int64 `json:"buffers"`
}

type RDSNetInterface

type RDSNetInterface struct {
	Interface string  `json:"interface"`
	Rx        float64 `json:"rx"`
	Tx        float64 `json:"tx"`
}

type RDSOSMetrics

type RDSOSMetrics struct {
	NumVCPUs          int                   `json:"numVCPUs"`
	Cpu               RDSCPUUtilization     `json:"cpuUtilization"`
	Memory            RDSMemory             `json:"memory"`
	PhysicalDeviceIO  []RDSPhysicalDeviceIO `json:"physicalDeviceIO"`
	DiskIO            []RDSAuroraDiskIO     `json:"diskIO"`
	FileSys           []RDSFileSys          `json:"fileSys"`
	NetworkInterfaces []RDSNetInterface     `json:"network"`
}

type RDSPhysicalDeviceIO

type RDSPhysicalDeviceIO struct {
	WriteKbPS   float64 `json:"writeKbPS"`
	ReadIOsPS   float64 `json:"readIOsPS"`
	Await       float64 `json:"await"`
	ReadKbPS    float64 `json:"readKbPS"`
	RrqmPS      float64 `json:"rrqmPS"`
	Util        float64 `json:"util"`
	AvgQueueLen float64 `json:"avgQueueLen"`
	Tps         float64 `json:"tps"`
	ReadKb      float64 `json:"readKb"`
	Device      string  `json:"device"`
	WriteKb     float64 `json:"writeKb"`
	AvgReqSz    float64 `json:"avgReqSz"`
	WrqmPS      float64 `json:"wrqmPS"`
	WriteIOsPS  float64 `json:"writeIOsPS"`
}

Jump to

Keyboard shortcuts

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