Documentation ¶
Index ¶
Constants ¶
View Source
const (
MetricEndpointLocal = "local"
)
Variables ¶
This section is empty.
Functions ¶
func NewLoggingConfig ¶ added in v0.6.1
Types ¶
type App ¶
type App struct { sync.RWMutex Config *Config Writer *writer.Writer Uploaders map[string]uploader.Uploader UDP receiver.Receiver TCP receiver.Receiver Pickle receiver.Receiver Grpc receiver.Receiver Prometheus receiver.Receiver TelegrafHttpJson receiver.Receiver Collector *Collector // (!!!) Should be re-created on every change config/modules ConfigFilename string // contains filtered or unexported fields }
func (*App) ParseConfig ¶ added in v0.6.1
ParseConfig loads config from config file
type Config ¶
type Config struct { Common commonConfig `toml:"common"` Data dataConfig `toml:"data"` Upload map[string]*uploader.Config `toml:"upload"` Udp udpConfig `toml:"udp"` Tcp tcpConfig `toml:"tcp"` Pickle pickleConfig `toml:"pickle"` Grpc grpcConfig `toml:"grpc"` Prometheus promConfig `toml:"prometheus"` TelegrafHttpJson telegrafHttpJsonConfig `toml:"telegraf_http_json"` Pprof pprofConfig `toml:"pprof"` Logging []zapwriter.Config `toml:"logging"` TagDesc tags.TagConfig `toml:"convert_to_tagged"` }
Config ...
Click to show internal directories.
Click to hide internal directories.