common

package
v0.0.0-...-e1467f5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceModeUnknown    = "unknown"
	ServiceModeReplicated = "replicated"
	ServiceModeGlobal     = "global"
)

Variables

This section is empty.

Functions

func ExportNodeMetrics

func ExportNodeMetrics(metrics []model.NodeMetrics)

ExportNodeMetrics expose the node metrics

func ExportServiceMetrics

func ExportServiceMetrics(metrics []model.ServiceMetrics)

ExportServiceMetrics set correct gauges and counters for service metrics

func ExportSwarmClusterInfo

func ExportSwarmClusterInfo(m model.SwarmMetrics)

ExportSwarmClusterInfo set gauges regarding swarm cluster information

func GetNodeList

func GetNodeList() []swarm.Node

func GetServiceList

func GetServiceList() []swarm.Service

func GetSwarmInfo

func GetSwarmInfo() types.Info

Types

This section is empty.

Jump to

Keyboard shortcuts

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