config

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MY_NODE_NAME = "MY_NODE_NAME"
	MY_NODE_IP   = "MY_NODE_IP"
)

Variables

View Source
var GlobalCfg = newConfig()

Functions

func KernelBlow317

func KernelBlow317() bool

Types

type Config

type Config struct {
	Metric      MetricConfig         `yaml:"metric"`
	WhiteList   WhiteListConfig      `yaml:"whitelist"`
	K8SMetaData K8SMetaDataConfig    `yaml:"k8s_metadata"`
	Middleware  MiddlewarePortConfig `yaml:"middleware_port"`
	NodeIP      string
	NodeName    string
	Kernel317   bool
}

type K8SMetaDataConfig added in v1.8.0

type K8SMetaDataConfig struct {
	FetchSourceAddr string `yaml:"fetch_source_addr"`
	AuthType        string `yaml:"auth_type"`
	KubeConfig      string `yaml:"kube_config"`
}

type MetricConfig added in v1.8.0

type MetricConfig struct {
	PingSpan     int  `yaml:"ping_span"`
	PidSpan      int  `yaml:"pid_span"`
	LRUCacheSize int  `yaml:"lru_cache_size"`
	ProcessTime  bool `yaml:"process_time"`
}

type MiddlewarePortConfig added in v1.8.0

type MiddlewarePortConfig struct {
	RabbitMQPort []uint16 `yaml:"rabbitmq"`
	KafkaPort    []uint16 `yaml:"kafka"`
	ActiveMQPort []uint16 `yaml:"activemq"`
	RocketMQPort []uint16 `yaml:"rocketmq"`

	MySQLPort      []uint16 `yaml:"mysql"`
	PostgreSQLPort []uint16 `yaml:"postgresql"`
	MongoDBPort    []uint16 `yaml:"mongodb"`
}

type WhiteListConfig added in v1.8.0

type WhiteListConfig struct {
	ProcessType  []string `yaml:"process_type"`
	K8SNameSpace []string `yaml:"k8s_namespace"`
}

Jump to

Keyboard shortcuts

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