logging

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	Timekey       string `yaml:"timekey"`
	TimekeyWait   string `yaml:"timekey_wait"`
	TimekeyUseUtc bool   `yaml:"timekey_use_utc"`
}

type Config

type Config struct {
	Name             string
	Namespace        string
	ControlNamespace string
}

type ConfigOutput

type ConfigOutput struct {
	Name      string
	Namespace string
	URL       string
}

type Filter

type Filter struct {
	Parser        *Parser           `yaml:"parser,omitempty"`
	TagNormaliser map[string]string `yaml:"tag_normaliser,omitempty"`
}

type FilterKubernetes added in v0.9.6

type FilterKubernetes struct {
	KubeTagPrefix string `yaml:"Kube_Tag_Prefix"`
}

type Flow

type Flow struct {
	APIVersion string    `yaml:"apiVersion"`
	Kind       string    `yaml:"kind"`
	Metadata   *Metadata `yaml:"metadata"`
	Spec       *FlowSpec `yaml:"spec"`
}

func NewFlow

func NewFlow(conf *FlowConfig) *Flow

type FlowConfig

type FlowConfig struct {
	Name         string
	Namespace    string
	SelectLabels map[string]string
	Outputs      []string
	ParserType   string
}

type FlowSpec

type FlowSpec struct {
	Filters    []*Filter         `yaml:"filters,omitempty"`
	Selectors  map[string]string `yaml:"selectors,omitempty"`
	OutputRefs []string          `yaml:"outputRefs"`
}

type Fluentbit

type Fluentbit struct {
	Metrics          *Metrics          `yaml:"metrics,omitempty"`
	FilterKubernetes *FilterKubernetes `yaml:"filterKubernetes,omitempty"`
	Image            *Image            `yaml:"image,omitempty"`
}

type Fluentd

type Fluentd struct {
	Metrics        *Metrics        `yaml:"metrics,omitempty"`
	FluentdPvcSpec *FluentdPvcSpec `yaml:"fluentdPvcSpec,omitempty"`
	LogLevel       string          `yaml:"logLevel,omitempty"`
}

type FluentdPvcSpec

type FluentdPvcSpec struct {
	AccessModes      []string   `yaml:"accessModes,omitempty"`
	Resources        *Resources `yaml:"resources,omitempty"`
	StorageClassName string     `yaml:"storageClassName,omitempty"`
}

type Image added in v0.9.6

type Image struct {
	PullPolicy string `yaml:"pullPolicy,omitempty"`
	Repository string `yaml:"repository,omitempty"`
	Tag        string `yaml:"tag,omitempty"`
}

type Logging

type Logging struct {
	APIVersion string    `yaml:"apiVersion"`
	Kind       string    `yaml:"kind"`
	Metadata   *Metadata `yaml:"metadata"`
	Spec       *Spec     `yaml:"spec"`
}

func New

func New(conf *Config) *Logging

type Loki

type Loki struct {
	URL                       string  `yaml:"url"`
	ConfigureKubernetesLabels bool    `yaml:"configure_kubernetes_labels"`
	Buffer                    *Buffer `yaml:"buffer"`
}

type Metadata

type Metadata struct {
	Name      string `yaml:"name"`
	Namespace string `yaml:"namespace"`
}

type Metrics

type Metrics struct {
	Port int `yaml:"port"`
}

type Output

type Output struct {
	APIVersion string      `yaml:"apiVersion"`
	Kind       string      `yaml:"kind"`
	Metadata   *Metadata   `yaml:"metadata"`
	Spec       *OutputSpec `yaml:"spec"`
}

func NewOutput

func NewOutput(conf *ConfigOutput) *Output

type OutputSpec

type OutputSpec struct {
	Loki *Loki `yaml:"loki"`
}

type Parse

type Parse struct {
	Type string `yaml:"type"`
}

type Parser

type Parser struct {
	RemoveKeyNameField bool   `yaml:"remove_key_name_field"`
	ReserveData        bool   `yaml:"reserve_data"`
	Parse              *Parse `yaml:"parse"`
}

type Requests

type Requests struct {
	Storage string `yaml:"storage,omitempty"`
}

type Resources

type Resources struct {
	Requests *Requests `yaml:"requests,omitempty"`
}

type Spec

type Spec struct {
	Fluentd          *Fluentd   `yaml:"fluentd"`
	Fluentbit        *Fluentbit `yaml:"fluentbit"`
	ControlNamespace string     `yaml:"controlNamespace"`
}

Jump to

Keyboard shortcuts

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