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

package config

import "istio.io/istio/mixer/adapter/signalfx/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_MetricConfig_Type_name = map[int32]string{
    0:  "NONE",
    1:  "COUNTER",
    2:  "HISTOGRAM",
}
var Params_MetricConfig_Type_value = map[string]int32{
    "NONE":      0,
    "COUNTER":   1,
    "HISTOGRAM": 2,
}

type Params Uses

type Params struct {
    // Required. The set of metrics to send to SignalFx. If an Istio metric is
    // configured to be sent to this adapter, it must have a corresponding
    // description here.
    Metrics []*Params_MetricConfig `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
    // Optional. The URL of the SignalFx ingest server to use.  Will default to
    // the global ingest server if not specified.
    IngestUrl string `protobuf:"bytes,2,opt,name=ingest_url,json=ingestUrl,proto3" json:"ingest_url,omitempty"`
    // Required. The access token for the SignalFx organization that should
    // receive the metrics.
    AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
    // Optional. Specifies how frequently to send metrics to SignalFx.  Metrics
    // reported to this adapter are collected and reported as a timeseries.
    // This will be rounded to the nearest second and rounded values less than
    // one second are not valid. Defaults to 10 seconds if not specified.
    DatapointInterval time.Duration `protobuf:"bytes,4,opt,name=datapoint_interval,json=datapointInterval,proto3,stdduration" json:"datapoint_interval"`
    // Optional.  If set to false, metrics won't be sent (but trace spans will
    // be sent, unless otherwise disabled).
    EnableMetrics bool `protobuf:"varint,5,opt,name=enable_metrics,json=enableMetrics,proto3" json:"enable_metrics,omitempty"`
    // Optional.  If set to false, trace spans won't be sent (but metrics will
    // be sent, unless otherwise disabled).
    EnableTracing bool `protobuf:"varint,6,opt,name=enable_tracing,json=enableTracing,proto3" json:"enable_tracing,omitempty"`
    // Optional.  The number of trace spans that the adapter will buffer before
    // dropping them.  This defaults to 1000 spans but can be configured higher
    // if needed.  An error message will be logged if spans are dropped.
    TracingBufferSize uint32 `protobuf:"varint,7,opt,name=tracing_buffer_size,json=tracingBufferSize,proto3" json:"tracing_buffer_size,omitempty"`
    // Optional. The uniform probability ([0.0, 1.0]) that a given span gets
    // sampled if its parent was not already sampled.  Child spans will always
    // be sampled if their parent is.  If not provided, defaults to sending all
    // spans.
    TracingSampleProbability float64 `protobuf:"fixed64,8,opt,name=tracing_sample_probability,json=tracingSampleProbability,proto3" json:"tracing_sample_probability,omitempty"`
}

Configuration format for the `signalfx` adapter.

func (*Params) Descriptor Uses

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

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_MetricConfig Uses

type Params_MetricConfig struct {
    // Required.  The name of the metric as it is sent to the adapter.  In
    // Kubernetes this is of the form `<name>.metric.<namespace>` where
    // `<name>` is the name field of the metric resource, and `<namespace>`
    // is the namespace of the metric resource.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The metric type of the metric
    Type Params_MetricConfig_Type `protobuf:"varint,4,opt,name=type,proto3,enum=adapter.signalfx.config.Params_MetricConfig_Type" json:"type,omitempty"`
}

Describes what metrics should be sent to SignalFx and in what form.

func (*Params_MetricConfig) Descriptor Uses

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

func (*Params_MetricConfig) Marshal Uses

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

func (*Params_MetricConfig) MarshalTo Uses

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

func (*Params_MetricConfig) MarshalToSizedBuffer Uses

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

func (*Params_MetricConfig) ProtoMessage Uses

func (*Params_MetricConfig) ProtoMessage()

func (*Params_MetricConfig) Reset Uses

func (m *Params_MetricConfig) Reset()

func (*Params_MetricConfig) Size Uses

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

func (*Params_MetricConfig) String Uses

func (this *Params_MetricConfig) String() string

func (*Params_MetricConfig) Unmarshal Uses

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

func (*Params_MetricConfig) XXX_DiscardUnknown Uses

func (m *Params_MetricConfig) XXX_DiscardUnknown()

func (*Params_MetricConfig) XXX_Marshal Uses

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

func (*Params_MetricConfig) XXX_Merge Uses

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

func (*Params_MetricConfig) XXX_Size Uses

func (m *Params_MetricConfig) XXX_Size() int

func (*Params_MetricConfig) XXX_Unmarshal Uses

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

type Params_MetricConfig_Type Uses

type Params_MetricConfig_Type int32

Describes what kind of metric this is.

const (
    // None is the default and is invalid
    NONE Params_MetricConfig_Type = 0
    // Values with the same set of dimensions will be added together
    // as a continuously incrementing value.
    COUNTER Params_MetricConfig_Type = 1
    // A histogram distribution.  This will result in several metrics
    // emitted for each unique set of dimensions.
    HISTOGRAM Params_MetricConfig_Type = 2
)

func (Params_MetricConfig_Type) EnumDescriptor Uses

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

func (Params_MetricConfig_Type) String Uses

func (x Params_MetricConfig_Type) String() string

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