collectors

package
v0.0.0-...-fa91818 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT, MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Services

func Services() ([]metrics.Service, error)

Services returns systemd services

Types

type DockerClient

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

DockerClient holds the docker API client

func NewDockerClient

func NewDockerClient() (*DockerClient, error)

NewDockerClient creates a docker API client instance

func (*DockerClient) FetchContainers

func (dc *DockerClient) FetchContainers() (collectedContainers []metrics.Container, err error)

FetchContainers fetches docker containers with metrics and volumes

type ServerMetricCollector

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

ServerMetricCollector defines a server resource collector

func NewServerMetricCollector

func NewServerMetricCollector(
	bucket *buckets.ServerMetricBucket,
	serverMetricInterval time.Duration,
	hostname string,
	inDocker bool) *ServerMetricCollector

NewServerMetricCollector creates a new instance of `ServerMetricCollector`

func (*ServerMetricCollector) Start

func (smc *ServerMetricCollector) Start()

Start server metric collection

func (*ServerMetricCollector) Stop

func (smc *ServerMetricCollector) Stop()

Stop server metric collection

Jump to

Keyboard shortcuts

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