istio: istio.io/istio/mixer/adapter/dogstatsd/config Index | Files

package config

import "istio.io/istio/mixer/adapter/dogstatsd/config"

Index

Package Files

config.pb.go

Variables

var (
    ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowConfig   = fmt.Errorf("proto: integer overflow")
)
var Params_MetricInfo_Type_name = map[int32]string{
    0:  "UNKNOWN_TYPE",
    1:  "COUNTER",
    2:  "GAUGE",
    3:  "DISTRIBUTION",
}
var Params_MetricInfo_Type_value = map[string]int32{
    "UNKNOWN_TYPE": 0,
    "COUNTER":      1,
    "GAUGE":        2,
    "DISTRIBUTION": 3,
}

type Params Uses

type Params struct {
    // Address of the dogstatsd server.
    // Default: localhost:8125
    Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
    // Prefix to prepend to all metrics handled by the adapter. Metric "bar" with prefix "foo." becomes "foo.bar" in DataDog. In order to make sure the metrics get populated into Datadog properly and avoid any billing issues, it's important to leave the metric prefix to its default value of 'istio.'
    // Default: "istio."
    Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
    // Number of individual metrics to buffer before flushing metrics to the network. When buffered, metrics are flushed every 100ms or when the buffer is filled.
    // When buffer is 0, metrics are not buffered.
    // Default: 0
    BufferLength int32 `protobuf:"varint,3,opt,name=buffer_length,json=bufferLength,proto3" json:"buffer_length,omitempty"`
    // Tags to add to every metric. "global": "tag" becomes "global:tag" in DataDog
    // Default: []
    GlobalTags map[string]string `protobuf:"bytes,4,rep,name=global_tags,json=globalTags,proto3" json:"global_tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // Chance that any particular metric is sampled when emitted; can take the range [0, 1].
    // Default: 1
    SampleRate float64 `protobuf:"fixed64,5,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"`
    // Map of a specific metric instance name -> info. If a metric's instance name is not in the map then the metric will not be exported to DataDog.
    Metrics map[string]*Params_MetricInfo `protobuf:"bytes,6,rep,name=metrics,proto3" json:"metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}

Configuration parameter for the DataDog adapter. These params control how Mixer telemetry is transformed and sent to a dogstatsd agent.

The adapter assumes that a dogstatsd agent is running as a sidecar or at some other endpoint that the Mixer can reach. Any dimension that is a part of the metric is converted to a tag automatically. The configuration of the DataDog agent/daemon is outside the scope of the adapter.

func (*Params) Descriptor Uses

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

func (*Params) Equal Uses

func (this *Params) Equal(that interface{}) bool

func (*Params) GetAddress Uses

func (m *Params) GetAddress() string

func (*Params) GetBufferLength Uses

func (m *Params) GetBufferLength() int32

func (*Params) GetGlobalTags Uses

func (m *Params) GetGlobalTags() map[string]string

func (*Params) GetMetrics Uses

func (m *Params) GetMetrics() map[string]*Params_MetricInfo

func (*Params) GetPrefix Uses

func (m *Params) GetPrefix() string

func (*Params) GetSampleRate Uses

func (m *Params) GetSampleRate() float64

func (*Params) GoString Uses

func (this *Params) GoString() string

func (*Params) Marshal Uses

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

func (*Params) MarshalTo Uses

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

func (*Params) MarshalToSizedBuffer Uses

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

func (*Params) ProtoMessage Uses

func (*Params) ProtoMessage()

func (*Params) Reset Uses

func (m *Params) Reset()

func (*Params) Size Uses

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

func (*Params) String Uses

func (this *Params) String() string

func (*Params) Unmarshal Uses

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

func (*Params) XXX_DiscardUnknown Uses

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal Uses

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge Uses

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size Uses

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal Uses

func (m *Params) XXX_Unmarshal(b []byte) error

type Params_MetricInfo Uses

type Params_MetricInfo struct {
    // Name of the metric in DataDog
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The type of metric
    Type Params_MetricInfo_Type `protobuf:"varint,2,opt,name=type,proto3,enum=adapter.dogstatsd.config.Params_MetricInfo_Type" json:"type,omitempty"`
    // Tags to add to the metric in addition to the dimensions. "tag": "val" becomes "tag:val" in DataDog
    // Default: []
    Tags map[string]string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}

Describes how to represent this metric in DataDog

func (*Params_MetricInfo) Descriptor Uses

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

func (*Params_MetricInfo) Equal Uses

func (this *Params_MetricInfo) Equal(that interface{}) bool

func (*Params_MetricInfo) GetName Uses

func (m *Params_MetricInfo) GetName() string

func (*Params_MetricInfo) GetTags Uses

func (m *Params_MetricInfo) GetTags() map[string]string

func (*Params_MetricInfo) GetType Uses

func (m *Params_MetricInfo) GetType() Params_MetricInfo_Type

func (*Params_MetricInfo) GoString Uses

func (this *Params_MetricInfo) GoString() string

func (*Params_MetricInfo) Marshal Uses

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

func (*Params_MetricInfo) MarshalTo Uses

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

func (*Params_MetricInfo) MarshalToSizedBuffer Uses

func (m *Params_MetricInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params_MetricInfo) ProtoMessage Uses

func (*Params_MetricInfo) ProtoMessage()

func (*Params_MetricInfo) Reset Uses

func (m *Params_MetricInfo) Reset()

func (*Params_MetricInfo) Size Uses

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

func (*Params_MetricInfo) String Uses

func (this *Params_MetricInfo) String() string

func (*Params_MetricInfo) Unmarshal Uses

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

func (*Params_MetricInfo) XXX_DiscardUnknown Uses

func (m *Params_MetricInfo) XXX_DiscardUnknown()

func (*Params_MetricInfo) XXX_Marshal Uses

func (m *Params_MetricInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params_MetricInfo) XXX_Merge Uses

func (m *Params_MetricInfo) XXX_Merge(src proto.Message)

func (*Params_MetricInfo) XXX_Size Uses

func (m *Params_MetricInfo) XXX_Size() int

func (*Params_MetricInfo) XXX_Unmarshal Uses

func (m *Params_MetricInfo) XXX_Unmarshal(b []byte) error

type Params_MetricInfo_Type Uses

type Params_MetricInfo_Type int32

Describes the type of metric

const (
    // Default Unknown Type
    UNKNOWN_TYPE Params_MetricInfo_Type = 0
    // Increments a DataDog counter
    COUNTER Params_MetricInfo_Type = 1
    // Sets the new value of a DataDog gauge
    GAUGE Params_MetricInfo_Type = 2
    // DISTRIBUTION is converted to a Timing Histogram for metrics with a time unit and a Histogram for all other units
    DISTRIBUTION Params_MetricInfo_Type = 3
)

func (Params_MetricInfo_Type) EnumDescriptor Uses

func (Params_MetricInfo_Type) EnumDescriptor() ([]byte, []int)

func (Params_MetricInfo_Type) String Uses

func (x Params_MetricInfo_Type) String() string

Package config imports 11 packages (graph) and is imported by 4 packages. Updated 2019-10-17. Refresh now. Tools for package owners.