Documentation ¶
Index ¶
- func Do()
- type DockerPlugin
- func (m DockerPlugin) FetchMetrics() (map[string]interface{}, error)
- func (m DockerPlugin) FetchMetricsWithAPI(containers []docker.APIContainers) (map[string]interface{}, error)
- func (m DockerPlugin) FetchMetricsWithFile(dockerStats *map[string][]string) (map[string]interface{}, error)
- func (m DockerPlugin) GraphDefinition() map[string]mp.Graphs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.