mpdocker

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 14 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Do the plugin

Types

type DockerPlugin

type DockerPlugin struct {
	Host          string
	DockerCommand string
	Tempfile      string
	Method        string
	NameFormat    string
	Label         string

	UseCPUPercentage bool
	// contains filtered or unexported fields
}

DockerPlugin mackerel plugin for docker

func (DockerPlugin) FetchMetrics

func (m DockerPlugin) FetchMetrics() (map[string]interface{}, error)

FetchMetrics interface for mackerel plugin

func (DockerPlugin) FetchMetricsWithAPI

func (m DockerPlugin) FetchMetricsWithAPI(containers []docker.APIContainers) (map[string]interface{}, error)

FetchMetricsWithAPI use docker API to fetch metrics

func (DockerPlugin) FetchMetricsWithFile

func (m DockerPlugin) FetchMetricsWithFile(dockerStats *map[string][]string) (map[string]interface{}, error)

FetchMetricsWithFile use cgroup stats files to fetch metrics

func (DockerPlugin) GraphDefinition

func (m DockerPlugin) GraphDefinition() map[string]mp.Graphs

GraphDefinition interface for mackerel plugin

Jump to

Keyboard shortcuts

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