Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.