types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PushPolicy = "push"
	PullPolicy = "pull"
)
View Source
const (
	Agent             = "/monitoring/agents/"
	MonConfig         = "/monitoring/configs"
	EventLog          = "/monitoring/eventLogs"
	CollectorPolicy   = "/monitoring/collectorPolicy"
	Topic             = "/push/topic"
	CollectorTopicMap = "/push/collectorTopicMap"
)

CB-Store key

View Source
const (
	NsId    = "nsId"
	McisId  = "mcisId"
	VmId    = "vmId"
	OsType  = "osType"
	CspType = "cspType"
)
View Source
const (
	AgentCntCollectorPolicy = "AGENTCOUNT"
	CSPCollectorPolicy      = "CSP"
)
View Source
const (
	Alibaba     = "ALIBABA"
	Aws         = "AWS"
	Azure       = "AZURE"
	Cloudit     = "CLOUDIT"
	Cloudtwin   = "CLOUDTWIN"
	Docker      = "DOCKER"
	Gcp         = "GCP"
	Openstack   = "OPENSTACK"
	TotalCspCnt = 8
)
View Source
const (
	KafkaDefaultPort     = 9092
	InfluxDefaultPort    = 8086
	KapacitorDefaultPort = 9092
)
View Source
const (
	Dev     = "dev"
	Helm    = "helm"
	Compose = "compose"
)
View Source
const (
	TopicAdd = "TopicAdd"
	TopicDel = "TopicDel"
)
View Source
const (
	ConfigMapName  = "cb-dragonfly-collector-configmap"
	DeploymentName = "cb-dragonfly-collector-"
)
View Source
const (
	LabelKey  = "name"
	Namespace = "dragonfly"
	//CollectorImage = "docker.io/hojun121/collector:latest"
	CollectorImage = "cloudbaristaorg/cb-dragonfly:0.5.0-collector"
)
View Source
const (
	TBRestAPIURL = "http://localhost:1323/tumblebug"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateType added in v0.3.5

type AggregateType string
const (
	MIN                   AggregateType = "min"
	MAX                   AggregateType = "max"
	AVG                   AggregateType = "avg"
	LAST                  AggregateType = "last"
	ReadConnectionTimeout               = 6
)

func (AggregateType) ToString added in v0.3.5

func (a AggregateType) ToString() string

type Metric

type Metric string
const (
	Cpu          Metric = "cpu"
	CpuFrequency Metric = "cpufreq"
	Memory       Metric = "memory"
	Disk         Metric = "disk"
	DiskIO       Metric = "diskio"
	Network      Metric = "network"
	None         Metric = "none"
)

func GetMetricType added in v0.4.1

func GetMetricType(input string) Metric

func (Metric) ToAgentMetricKey added in v0.3.5

func (m Metric) ToAgentMetricKey() string

func (Metric) ToString added in v0.3.5

func (m Metric) ToString() string

Jump to

Keyboard shortcuts

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