logging

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 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
	Replicas         int
	FluentdPVC       *Storage
	FluentbitPVC     *Storage
}

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"`
	BufferStorageVolume *KubernetesStorage `yaml:"bufferStorageVolume,omitempty"`
}

type Fluentd

type Fluentd struct {
	Metrics             *Metrics           `yaml:"metrics,omitempty"`
	BufferStorageVolume *KubernetesStorage `yaml:"bufferStorageVolume,omitempty"`
	LogLevel            string             `yaml:"logLevel,omitempty"`
	DisablePvc          bool               `yaml:"disablePvc"`
	Scaling             *Scaling           `yaml:"scaling,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 KubernetesStorage added in v0.9.11

type KubernetesStorage struct {
	Pvc *Pvc `yaml:"pvc,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 Pvc added in v0.9.11

type Pvc struct {
	PvcSpec *PvcSpec `yaml:"spec,omitempty"`
}

type PvcSpec added in v0.9.11

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

type Requests

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

type Resources

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

type Scaling added in v0.9.11

type Scaling struct {
	Replicas int `yaml:"replicas"`
}

type Spec

type Spec struct {
	Fluentd                                      *Fluentd   `yaml:"fluentd"`
	Fluentbit                                    *Fluentbit `yaml:"fluentbit"`
	ControlNamespace                             string     `yaml:"controlNamespace"`
	EnableRecreateWorkloadOnImmutableFieldChange bool       `yaml:"enableRecreateWorkloadOnImmutableFieldChange"`
	FlowConfigCheckDisabled                      bool       `yaml:"flowConfigCheckDisabled"`
}

type Storage added in v0.9.11

type Storage struct {
	StorageClassName string
	AccessModes      []string
	Storage          string
}

Jump to

Keyboard shortcuts

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