metrics

package
v4.2.711+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationTime        influxdb.Tag = "time"
	ApplicationName        influxdb.Tag = "name"
	ApplicationNamespace   influxdb.Tag = "namespace"
	ApplicationClusterName influxdb.Tag = "cluster_name"
	ApplicationUID         influxdb.Tag = "uid"

	ApplicationValue influxdb.Field = "value"
)
View Source
const (
	ClusterTime influxdb.Tag = "time"
	ClusterName influxdb.Tag = "name"
	ClusterUID  influxdb.Tag = "uid"

	ClusterValue influxdb.Field = "value"
)
View Source
const (
	ContainerTime         influxdb.Tag = "time"
	ContainerPodNamespace influxdb.Tag = "pod_namespace"
	ContainerPodName      influxdb.Tag = "pod_name"
	ContainerName         influxdb.Tag = "name"
	ContainerRateRange    influxdb.Tag = "rate_range"
	ContainerClusterName  influxdb.Tag = "cluster_name"
	ContainerNodeName     influxdb.Tag = "node_name"

	ContainerValue influxdb.Field = "value"
)
View Source
const (
	ControllerTime        influxdb.Tag = "time"
	ControllerName        influxdb.Tag = "name"
	ControllerNamespace   influxdb.Tag = "namespace"
	ControllerClusterName influxdb.Tag = "cluster_name"
	ControllerKind        influxdb.Tag = "kind"
	ControllerUID         influxdb.Tag = "uid"

	ControllerValue influxdb.Field = "value"
)
View Source
const (
	NamespaceTime        influxdb.Tag = "time"
	NamespaceName        influxdb.Tag = "name"
	NamespaceClusterName influxdb.Tag = "cluster_name"
	NamespaceUID         influxdb.Tag = "uid"

	NamespaceValue influxdb.Field = "value"
)
View Source
const (
	NodeTime        influxdb.Tag = "time"
	NodeName        influxdb.Tag = "name"
	NodeClusterName influxdb.Tag = "cluster_name"
	NodeUID         influxdb.Tag = "uid"

	NodeValue influxdb.Field = "value"
)

Variables

View Source
var (
	ClusterTags    = []influxdb.Tag{ClusterName, ClusterUID}
	ClusterFields  = []influxdb.Field{ClusterValue}
	ClusterColumns = []string{string(ClusterName), string(ClusterUID), string(ClusterValue)}
)

Functions

This section is empty.

Types

type ApplicationEntity

type ApplicationEntity struct {
	Time        time.Time
	Name        *string
	Namespace   *string
	ClusterName *string
	UID         *string

	Value *float64
}

func NewApplicationEntityFromMap

func NewApplicationEntityFromMap(data map[string]string) ApplicationEntity

type ClusterEntity

type ClusterEntity struct {
	Time time.Time
	Name *string
	UID  *string

	Value *float64
}

func NewClusterEntityFromMap

func NewClusterEntityFromMap(data map[string]string) ClusterEntity

type ContainerEntity

type ContainerEntity struct {
	Time        time.Time
	Namespace   *string
	PodName     *string
	Name        *string
	RateRange   *string
	ClusterName *string
	NodeName    *string

	Value *float64
}

func NewContainerEntityFromMap

func NewContainerEntityFromMap(data map[string]string) ContainerEntity

type ControllerEntity

type ControllerEntity struct {
	Time        time.Time
	Name        *string
	Namespace   *string
	ClusterName *string
	Kind        *string
	UID         *string

	Value *float64
}

func NewControllerEntityFromMap

func NewControllerEntityFromMap(data map[string]string) ControllerEntity

type NamespaceEntity

type NamespaceEntity struct {
	Time        time.Time
	Name        *string
	ClusterName *string
	UID         *string

	Value *float64
}

func NewNamespaceEntityFromMap

func NewNamespaceEntityFromMap(data map[string]string) NamespaceEntity

type NodeEntity

type NodeEntity struct {
	Time        time.Time
	Name        *string
	ClusterName *string
	UID         *string

	Value *float64
}

func NewNodeEntityFromMap

func NewNodeEntityFromMap(data map[string]string) NodeEntity

Jump to

Keyboard shortcuts

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