Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnpointLoadconfig = "/loadconfig" EnpointStop = "/stop" EnpointHoldon = "/holdon" )
export http endpoints.
Variables ¶
View Source
var BaseVersion = "0.1.0" // will be overwritten through ldflags at compile time
StatisticsConfigJson, AlarmConfigJson
View Source
var LoongcollectorGlobalConfig = newGlobalConfig()
LoongcollectorGlobalConfig is the singleton instance of GlobalConfig.
View Source
var UserAgent = fmt.Sprintf("ilogtail/%v (%v)", BaseVersion, runtime.GOOS) // set in global config
Functions ¶
func GetRealConfigName ¶
func SerizlizeLoadedConfig ¶
func SerizlizeLoadedConfig(c []*LoadedConfig) []byte
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { InputMaxFirstCollectDelayMs int // 10s by default, If InputMaxFirstCollectDelayMs is greater than interval, it will use interval instead. InputIntervalMs int AggregatIntervalMs int FlushIntervalMs int DefaultLogQueueSize int DefaultLogGroupQueueSize int Tags map[string]string // Directory to store loongcollector data, such as checkpoint, etc. LoongcollectorConfDir string // Directory to store loongcollector log. LoongcollectorLogDir string // Directory to store loongcollector data. LoongcollectorDataDir string // Directory to store loongcollector debug data. LoongcollectorDebugDir string // Directory to store loongcollector third party data. LoongcollectorThirdPartyDir string // Log name of loongcollector plugin. LoongcollectorPluginLogName string // Tag of loongcollector version. LoongcollectorVersionTag string // Checkpoint file name of loongcollector plugin. LoongcollectorCheckPointFile string // Network identification from loongcollector. HostIP string Hostname string AlwaysOnline bool DelayStopSec int EnableTimestampNanosecond bool UsingOldContentTag bool EnableContainerdUpperDirDetect bool EnableSlsMetricsFormat bool }
GlobalConfig represents global configurations of plugin system.
type LoadedConfig ¶
type LoadedConfig struct { Project string `json:"project"` Logstore string `json:"logstore"` ConfigName string `json:"config_name"` LogstoreKey int64 `json:"logstore_key"` JSONStr string `json:"json_str"` }
LoadedConfig used to start logtail plugin sniffer.
func DeserializeLoadedConfig ¶
func DeserializeLoadedConfig(cfg []byte) ([]*LoadedConfig, error)
Click to show internal directories.
Click to hide internal directories.