flags

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalConfig     = flag.String("global", "./global.json", "global config.")
	PluginConfig     = flag.String("plugin", "./plugin.json", "plugin config.")
	FlusherConfig    = flag.String("flusher", "./default_flusher.json", "the default flusher configuration is used not only in the plugins without flusher but also to transfer the self telemetry data.")
	ForceSelfCollect = flag.Bool("force-statics", false, "force collect self telemetry data before closing.")
	AutoProfile      = flag.Bool("prof-auto", true, "auto dump prof file when prof-flag is open.")
	HTTPProfFlag     = flag.Bool("prof-flag", false, "http pprof flag.")
	Cpuprofile       = flag.String("cpu-profile", "cpu.prof", "write cpu profile to file.")
	Memprofile       = flag.String("mem-profile", "mem.prof", "write mem profile to file.")
	HTTPAddr         = flag.String("server", ":18689", "http server address.")
	Doc              = flag.Bool("doc", false, "generate plugin docs")
	DocPath          = flag.String("docpath", "./docs/en/plugins", "generate plugin docs")
	HTTPLoadFlag     = flag.Bool("http-load", false, "export http endpoint for load plugin config.")
	FileIOFlag       = flag.Bool("file-io", false, "use file for input or output.")
	InputFile        = flag.String("input-file", "./input.log", "input file")
	InputField       = flag.String("input-field", "content", "input file")
	InputLineLimit   = flag.Int("input-line-limit", 1000, "input file")
	OutputFile       = flag.String("output-file", "./output.log", "output file")
	StatefulSetFlag  = flag.Bool("ALICLOUD_LOG_STATEFULSET_FLAG", false, "alibaba log export ports flag, set true if you want to use it")
)

flags used to control ilogtail.

Functions

func GetFlusherConfiguration

func GetFlusherConfiguration() (flusherCategory string, flusherOptions map[string]interface{})

GetFlusherConfiguration returns the flusher category and options.

func LoadConfig

func LoadConfig() (globalCfg string, pluginCfgs []string, err error)

LoadConfig read the plugin content.

func OverrideByEnv

func OverrideByEnv()

Types

This section is empty.

Jump to

Keyboard shortcuts

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