mpdocker

package
v0.82.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 13 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
	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) 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