config

package
v0.0.0-...-edfa39e Latest Latest
Warning

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

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

Documentation

Overview

Package config is a generated protocol buffer package.

The CloudWatch adapter enables Istio to deliver metrics to [Amazon CloudWatch](https://aws.amazon.com/cloudwatch/). [Amazon CloudWatch](https://aws.amazon.com/cloudwatch/) and logs to [Amazon CloudWatchLogs](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html/).

To push metrics and logs to CloudWatch using this adapter you must provide AWS credentials to the AWS SDK. (see [AWS docs](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/setup-credentials.html)).

To activate the CloudWatch adapter, operators need to provide configuration for the [cloudwatch adapter](https://istio.io/docs/reference/config/adapters/cloudwatch.html).

The handler configuration must contain the same metrics as the instance configuration. The metrics specified in both instance and handler configurations will be sent to CloudWatch.

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

It is generated from these files:

mixer/adapter/cloudwatch/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")
)
View Source
var Params_MetricDatum_Unit_name = map[int32]string{
	0:  "None",
	1:  "Seconds",
	2:  "Microseconds",
	3:  "Milliseconds",
	4:  "Count",
	5:  "Bytes",
	6:  "Kilobytes",
	7:  "Megabytes",
	8:  "Gigabytes",
	9:  "Terabytes",
	10: "Bits",
	11: "Kilobits",
	12: "Megabits",
	13: "Gigabits",
	14: "Terabits",
	15: "Percent",
	16: "Bytes_Second",
	17: "Kilobytes_Second",
	18: "Megabytes_Second",
	19: "Gigabytes_Second",
	20: "Terabytes_Second",
	21: "Bits_Second",
	22: "Kilobits_Second",
	23: "Megabits_Second",
	24: "Gigabits_Second",
	25: "Terabits_Second",
	26: "Count_Second",
}
View Source
var Params_MetricDatum_Unit_value = map[string]int32{
	"None":             0,
	"Seconds":          1,
	"Microseconds":     2,
	"Milliseconds":     3,
	"Count":            4,
	"Bytes":            5,
	"Kilobytes":        6,
	"Megabytes":        7,
	"Gigabytes":        8,
	"Terabytes":        9,
	"Bits":             10,
	"Kilobits":         11,
	"Megabits":         12,
	"Gigabits":         13,
	"Terabits":         14,
	"Percent":          15,
	"Bytes_Second":     16,
	"Kilobytes_Second": 17,
	"Megabytes_Second": 18,
	"Gigabytes_Second": 19,
	"Terabytes_Second": 20,
	"Bits_Second":      21,
	"Kilobits_Second":  22,
	"Megabits_Second":  23,
	"Gigabits_Second":  24,
	"Terabits_Second":  25,
	"Count_Second":     26,
}

Functions

This section is empty.

Types

type Params

type Params struct {
	// CloudWatch metric namespace.
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// A map of Istio metric name to CloudWatch metric info.
	MetricInfo map[string]*Params_MetricDatum `` /* 165-byte string literal not displayed */
	// The name of the log group in cloudwatchlogs.
	LogGroupName string `protobuf:"bytes,4,opt,name=log_group_name,json=logGroupName,proto3" json:"log_group_name,omitempty"`
	// The name of the log stream in cloudwatchlogs.
	LogStreamName string `protobuf:"bytes,5,opt,name=log_stream_name,json=logStreamName,proto3" json:"log_stream_name,omitempty"`
	// A map of Istio logentry name to CloudWatch logentry info.
	Logs map[string]*Params_LogInfo `` /* 135-byte string literal not displayed */
}

Configuration for the `cloudwatch` adapter.

func (*Params) Descriptor

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

func (*Params) Equal

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

func (*Params) GetLogGroupName

func (m *Params) GetLogGroupName() string

func (*Params) GetLogStreamName

func (m *Params) GetLogStreamName() string

func (*Params) GetLogs

func (m *Params) GetLogs() map[string]*Params_LogInfo

func (*Params) GetMetricInfo

func (m *Params) GetMetricInfo() map[string]*Params_MetricDatum

func (*Params) GetNamespace

func (m *Params) GetNamespace() string

func (*Params) GoString

func (this *Params) GoString() string

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

type Params_LogInfo

type Params_LogInfo struct {
	// A golang text/template template that will be executed to construct the payload for this log entry.
	// It will be given the full set of variables for the log to use to construct its result.
	PayloadTemplate string `protobuf:"bytes,1,opt,name=payload_template,json=payloadTemplate,proto3" json:"payload_template,omitempty"`
}

func (*Params_LogInfo) Descriptor

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

func (*Params_LogInfo) Equal

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

func (*Params_LogInfo) GetPayloadTemplate

func (m *Params_LogInfo) GetPayloadTemplate() string

func (*Params_LogInfo) GoString

func (this *Params_LogInfo) GoString() string

func (*Params_LogInfo) Marshal

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

func (*Params_LogInfo) MarshalTo

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

func (*Params_LogInfo) ProtoMessage

func (*Params_LogInfo) ProtoMessage()

func (*Params_LogInfo) Reset

func (m *Params_LogInfo) Reset()

func (*Params_LogInfo) Size

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

func (*Params_LogInfo) String

func (this *Params_LogInfo) String() string

func (*Params_LogInfo) Unmarshal

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

type Params_MetricDatum

type Params_MetricDatum struct {
	// The unit of the metric. Must be valid cloudwatch unit value.
	// [CloudWatch docs](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html)
	Unit Params_MetricDatum_Unit `protobuf:"varint,3,opt,name=unit,proto3,enum=adapter.cloudwatch.config.Params_MetricDatum_Unit" json:"unit,omitempty"`
}

CloudWatch metric format.

func (*Params_MetricDatum) Descriptor

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

func (*Params_MetricDatum) Equal

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

func (*Params_MetricDatum) GetUnit

func (*Params_MetricDatum) GoString

func (this *Params_MetricDatum) GoString() string

func (*Params_MetricDatum) Marshal

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

func (*Params_MetricDatum) MarshalTo

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

func (*Params_MetricDatum) ProtoMessage

func (*Params_MetricDatum) ProtoMessage()

func (*Params_MetricDatum) Reset

func (m *Params_MetricDatum) Reset()

func (*Params_MetricDatum) Size

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

func (*Params_MetricDatum) String

func (this *Params_MetricDatum) String() string

func (*Params_MetricDatum) Unmarshal

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

type Params_MetricDatum_Unit

type Params_MetricDatum_Unit int32
const (
	None             Params_MetricDatum_Unit = 0
	Seconds          Params_MetricDatum_Unit = 1
	Microseconds     Params_MetricDatum_Unit = 2
	Milliseconds     Params_MetricDatum_Unit = 3
	Count            Params_MetricDatum_Unit = 4
	Bytes            Params_MetricDatum_Unit = 5
	Kilobytes        Params_MetricDatum_Unit = 6
	Megabytes        Params_MetricDatum_Unit = 7
	Gigabytes        Params_MetricDatum_Unit = 8
	Terabytes        Params_MetricDatum_Unit = 9
	Bits             Params_MetricDatum_Unit = 10
	Kilobits         Params_MetricDatum_Unit = 11
	Megabits         Params_MetricDatum_Unit = 12
	Gigabits         Params_MetricDatum_Unit = 13
	Terabits         Params_MetricDatum_Unit = 14
	Percent          Params_MetricDatum_Unit = 15
	Bytes_Second     Params_MetricDatum_Unit = 16
	Kilobytes_Second Params_MetricDatum_Unit = 17
	Megabytes_Second Params_MetricDatum_Unit = 18
	Gigabytes_Second Params_MetricDatum_Unit = 19
	Terabytes_Second Params_MetricDatum_Unit = 20
	Bits_Second      Params_MetricDatum_Unit = 21
	Kilobits_Second  Params_MetricDatum_Unit = 22
	Megabits_Second  Params_MetricDatum_Unit = 23
	Gigabits_Second  Params_MetricDatum_Unit = 24
	Terabits_Second  Params_MetricDatum_Unit = 25
	Count_Second     Params_MetricDatum_Unit = 26
)

func (Params_MetricDatum_Unit) EnumDescriptor

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

func (Params_MetricDatum_Unit) String

func (x Params_MetricDatum_Unit) String() string

Jump to

Keyboard shortcuts

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