esmetrics

package
v0.0.0-...-12b6520 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorInfo

type CollectorInfo struct {
	CollectionCount        int64 `json:"collection_count"`
	CollectionTimeInMillis int64 `json:"collection_time_in_millis"`
}

type ESCollector

type ESCollector struct {
	GC  GC
	CPU *metrics.IntGaugeSet
	Mem Mem
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector(host string, timeout time.Duration, debug bool) (*ESCollector, error)

func (*ESCollector) Collect

func (c *ESCollector) Collect(ctx context.Context) error

func (*ESCollector) Name

func (c *ESCollector) Name() string

type GC

type GC struct {
	Young *metrics.IntGaugeSet
	Full  *metrics.IntGaugeSet
}

type Mem

type Mem struct {
	YoungHeapPool    *metrics.IntGaugeSet
	TenuredHeapPool  *metrics.IntGaugeSet
	SurvivorHeapPool *metrics.IntGaugeSet
	Heap             *metrics.IntGaugeSet
	NonHeap          *metrics.IntGaugeSet
	OS               *metrics.IntGaugeSet
	Swap             *metrics.IntGaugeSet
}

type MemInfo

type MemInfo struct {
	UsedInBytes  int64 `json:"used_in_bytes"`
	TotalInBytes int64 `json:"max_in_bytes"`
}

type MemPoolInfo

type MemPoolInfo struct {
	UsedInBytes int64 `json:"used_in_bytes"`
	MaxInBytes  int64 `json:"max_in_bytes"`
}

type NodeStats

type NodeStats struct {
	JVM struct {
		Mem struct {
			Pools struct {
				Young    MemPoolInfo `json:"young"`
				Old      MemPoolInfo `json:"old"`
				Survivor MemPoolInfo `json:"survivor"`
			} `json:"pools"`
			HeapUsedInBytes         int64 `json:"heap_used_in_bytes"`
			HeapCommittedInBytes    int64 `json:"heap_committed_in_bytes"`
			NonHeapUsedInBytes      int64 `json:"non_heap_used_in_bytes"`
			NonHeapCommittedInBytes int64 `json:"non_heap_committed_in_bytes"`
		} `json:"mem"`
		GC struct {
			Collectors struct {
				Young CollectorInfo `json:"young"`
				Old   CollectorInfo `json:"old"`
			} `json:"collectors"`
		} `json:"gc"`
	} `json:"jvm"`
	OS struct {
		Mem  MemInfo `json:"mem"`
		Swap MemInfo `json:"swap"`
	} `json:"os"`
	Process struct {
		CPU struct {
			Percent       int   `json:"percent"`
			TotalInMillis int64 `json:"total_in_millis"`
		} `json:"cpu"`
	} `json:"process"`
}

type StatsResponse

type StatsResponse struct {
	Nodes map[string]NodeStats `json:"nodes"`
}

Jump to

Keyboard shortcuts

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