misc

package
v0.0.0-...-d050cfb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(path string)

InitConfig ...

Types

type Config

type Config struct {
	Common struct {
		Version    string
		LogLevel   string
		AdminToken string
	}

	Collector struct {
		Addr    string
		Timeout int
	}

	Etcd struct {
		Addrs      []string
		TimeOut    int
		ReportTime int
		ReportDir  string
		TTL        int64
	}

	Storage struct {
		Cluster             []string
		TraceKeyspace       string
		StaticKeyspace      string
		NumConns            int
		SpanCacheLen        int // 缓存长度
		SpanChunkCacheLen   int // 缓存长度
		MetricCacheLen      int // 缓存长度
		SpanStoreInterval   int // 毫秒
		SystemStoreInterval int // 毫秒
		AgentStatUseTTL     bool
		AgentStatTTL        int64
		GoruntineNum        int // 入库goruntine数量
	}

	Stats struct {
		DeferTime        int64   // 延迟计算时间,单位秒
		MapRange         int64   // 应用拓扑图计算时间范围,单位秒
		APICallRange     int64   // API应用调用计算时间范围,单位秒
		SatisfactionTime int32   // APDEX 满意时间指标,单位毫秒
		TolerateTime     int32   // APDEX 可容忍时间指标,单位毫秒
		RuntimeRange     int64   // Runtime延迟计算时间
		DefaultCode      []int32 // http默认code
	}

	Apps struct {
		LoadInterval     int64 // 加载app时间间隔
		ApiStatsInterval int64 // api二次聚合延迟时间
	}

	MQ struct {
		Addrs []string // mq地址
		Topic string   // 主题
	}

	Ticker struct {
		Num      int   // 定时器个数
		Interval int64 // 任务时间间隔
	}
}

Config ...

var Conf *Config

Conf ...

Jump to

Keyboard shortcuts

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