config

package
v0.0.0-...-519b562 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package config is a generated protocol buffer package.

The `fluentd` adapter is designed to deliver Istio log entries to a listening [fluentd](https://www.fluentd.org) daemon.

This adapter supports the [logentry template](https://istio.io/docs/reference/config/policy-and-telemetry/templates/logentry/).

It is generated from these files:

mixer/adapter/fluentd/config/config.proto

It has these top-level messages:

Params

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConfig   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Params

type Params struct {
	// Address of listening fluentd daemon. Example: fluentd-server:24224
	// Default value is localhost:24224
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Convert attributes of type duration to integers of unit ms in
	// logs. Default behaviour is a string representation including
	// unit.
	IntegerDuration bool `protobuf:"varint,2,opt,name=integer_duration,json=integerDuration,proto3" json:"integer_duration,omitempty"`
	// Controls the size of the queue of log entries awaiting processing by the
	// data push goroutine. This impacts the overall size of the backlog of
	// log entries that the handler will accept. If the handler falls behind and
	// the number of outstanding instances exceeds this limit, the handler will
	// begin to drop log entries.
	// Defaults to 1024.
	InstanceBufferSize int64 `protobuf:"varint,3,opt,name=instance_buffer_size,json=instanceBufferSize,proto3" json:"instance_buffer_size,omitempty"`
	// Controls the number of data bytes that are encoded and buffered by the handler before
	// they are pushed to the fluentd backend. This impacts the size and frequency of requests
	// sent to the fluentd backend. Once the buffer exceeds this limit, the handler will attempt to push
	// data to the backend.
	// Defaults to 8,388,608 (8 MiB).
	MaxBatchSizeBytes int64 `protobuf:"varint,4,opt,name=max_batch_size_bytes,json=maxBatchSizeBytes,proto3" json:"max_batch_size_bytes,omitempty"`
	// Duration interval for pushing batched data to the fluentd backend. At least once every duration,
	// the handler will attempt to push data.
	// Default to 1m.
	PushIntervalDuration time.Duration `protobuf:"bytes,5,opt,name=push_interval_duration,json=pushIntervalDuration,stdduration" json:"push_interval_duration"`
	// Timeout duration for pushing batched data to the fluentd backend. If a request takes longer than
	// the configured timeout, the request will be cancelled and dropped.
	// Default to 1m.
	PushTimeoutDuration time.Duration `protobuf:"bytes,6,opt,name=push_timeout_duration,json=pushTimeoutDuration,stdduration" json:"push_timeout_duration"`
}

Configuration parameters for the fluentd adapter.

This adapter accepts instances of kind: logentry. It then routes those logentries to a listening fluentd daemon with minimal transformation. Fluentd uses a "tag" for all logs. The "Name" of the logentry is used as the "tag", unless the logentry already has a variable "tag".

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (this *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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