Documentation
¶
Index ¶
- Constants
- func Convert(info *LogInfoNode) (map[string]string, error)
- func Register(format string, converter FormatConverter)
- func ReloadFluentd() error
- func Run(tpl string, baseDir string) error
- func StartFluentd() error
- type FormatConverter
- type LogConfig
- type LogInfoNode
- type Pilot
- type SimpleConverter
Constants ¶
View Source
const ENV_SERVICE_LOGS = "aliyun_logs_"
View Source
const FLUENTD_CONF_HOME = "/etc/fluentd"
View Source
const LABEL_POD = "io.kubernetes.pod.name"
View Source
const LABEL_PROJECT = "com.docker.compose.project"
View Source
const LABEL_PROJECT_SWARM_MODE = "com.docker.stack.namespace"
View Source
const LABEL_SERVICE = "com.docker.compose.service"
View Source
const LABEL_SERVICE_LOGS = "aliyun.logs."
View Source
const LABEL_SERVICE_SWARM_MODE = "com.docker.swarm.service.name"
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(format string, converter FormatConverter)
func ReloadFluentd ¶
func ReloadFluentd() error
func StartFluentd ¶
func StartFluentd() error
Types ¶
type FormatConverter ¶
type FormatConverter func(info *LogInfoNode) (map[string]string, error)
type LogInfoNode ¶
type LogInfoNode struct {
// contains filtered or unexported fields
}
type SimpleConverter ¶
type SimpleConverter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.