package mesos

import "github.com/google/cadvisor/container/mesos"

Handler for "mesos" containers.

Index

Constants

const MesosNamespace = "mesos"

The namespace under which mesos aliases are unique.

Variables

var MesosAgentAddress = flag.String("mesos_agent", "127.0.0.1:5051", "Mesos agent address")
var MesosAgentTimeout = flag.Duration("mesos_agent_timeout", 10*time.Second, "Mesos agent timeout")

Functions

func Client

func Client() (mesosAgentClient, error)

Client is an interface to query mesos agent http endpoints

func ContainerNameToMesosId

func ContainerNameToMesosId(name string) string

ContainerNameToMesosId returns the Mesos ID from the full container name.

func NewPlugin

func NewPlugin() container.Plugin

NewPlugin returns an implementation of container.Plugin suitable for passing to container.RegisterPlugin()

func Register

func Register(
	machineInfoFactory info.MachineInfoFactory,
	fsInfo fs.FsInfo,
	includedMetrics container.MetricSet,
) error

Source Files

client.go factory.go handler.go mesos_agent.go plugin.go

Directories

PathSynopsis
container/mesos/installThe install package registers mesos.NewPlugin() as the "mesos" container provider when imported
Version
v0.35.0
Published
Nov 27, 2019
Platform
windows/amd64
Imports
25 packages
Last checked
2 minutes ago

Tools for package owners.