parse

package
v0.0.0-...-81cdc2d Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package parse configures files and domain files

Package parse configures files and domain files

Index

Constants

View Source
const (
	MetricRTT              = "rtt"
	MetricRetrans          = "retrans"
	MetricTotalConnections = "total_connections"
	MetricRetranRate       = "retran_rate"
	MetricRto              = "rto"
	MetricByteSent         = "bytes_sent"
	MetricBytesReceived    = "bytes_received"
	SsLocalAddr            = "localAddr"
	SsPeerAddr             = "peerAddr"

	AggSum   = "sum"
	AggAvg   = "avg"
	AggMax   = "max"
	AggMin   = "min"
	AggAlert = "alert"
	AggRate  = "rate"
)

Variables

This section is empty.

Functions

func GetClusterAddress

func GetClusterAddress(domainID string) (map[string][]string, error)

GetClusterAddress get the address and port of a remote domain connected by a local domain

func GetIPFromDomain

func GetIPFromDomain(localDomainName string) []string

GetIPFromDomain get a list of IP addresses from a local domain name

func LoadMetricConfig

func LoadMetricConfig() ([]string, map[string]string)

ReadConfig read the configuration and return each entry

Types

type MonitorConfig

type MonitorConfig struct {
	SsMetrics  []string
	AggMetrics []string
}

Config define the structure of the configuration file

Jump to

Keyboard shortcuts

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