Documentation ¶
Index ¶
- Variables
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetMetrics() map[string]*Params_MetricInfo
- func (m *Params) GetNamespace() string
- func (this *Params) GoString() string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (this *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Params_MetricInfo
- func (*Params_MetricInfo) Descriptor() ([]byte, []int)
- func (this *Params_MetricInfo) Equal(that interface{}) bool
- func (m *Params_MetricInfo) GetName() string
- func (m *Params_MetricInfo) GetType() Params_MetricInfo_Type
- func (this *Params_MetricInfo) GoString() string
- func (m *Params_MetricInfo) Marshal() (dAtA []byte, err error)
- func (m *Params_MetricInfo) MarshalTo(dAtA []byte) (int, error)
- func (*Params_MetricInfo) ProtoMessage()
- func (m *Params_MetricInfo) Reset()
- func (m *Params_MetricInfo) Size() (n int)
- func (this *Params_MetricInfo) String() string
- func (m *Params_MetricInfo) Unmarshal(dAtA []byte) error
- func (m *Params_MetricInfo) XXX_DiscardUnknown()
- func (m *Params_MetricInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params_MetricInfo) XXX_Merge(src proto.Message)
- func (m *Params_MetricInfo) XXX_Size() int
- func (m *Params_MetricInfo) XXX_Unmarshal(b []byte) error
- type Params_MetricInfo_Type
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_MetricInfo_Type_name = map[int32]string{
0: "UNSPECIFIED",
1: "GAUGE",
2: "COUNT",
3: "SUMMARY",
}
View Source
var Params_MetricInfo_Type_value = map[string]int32{
"UNSPECIFIED": 0,
"GAUGE": 1,
"COUNT": 2,
"SUMMARY": 3,
}
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct { // Optional. The namespace is used as a prefix for metric names in New Relic. // An example: for a metric named `requestSize` with a namespace of `istio`, // the full metric name in New Relic becomes `istio.requestSize`. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Map of Istio metric instance names and the corresponding New Relic // MetricInfo specification. This identifies what to send New Relic and // in what form it should be sent. // // Any metric instances Istio sends to the adapter but not specified here // will be dropped and not exported to New Relic. Metrics map[string]*Params_MetricInfo `` /* 155-byte string literal not displayed */ }
Configuration format for the `newrelic` adapter.
func (*Params) Descriptor ¶
func (*Params) GetMetrics ¶
func (m *Params) GetMetrics() map[string]*Params_MetricInfo
func (*Params) GetNamespace ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Params_MetricInfo ¶
type Params_MetricInfo struct { // Recommended. The name of the metric (scoped by namespaces) in New Relic. // // The name must not be empty and the fully qualified name (prefixed // with the namespace) must contain 255 16-bit code units (UTF-16) or // less. Otherwise, an error will be logged and no metric will be sent // to New Relic. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. New Relic metric type to interpret the Istio instance as. Type Params_MetricInfo_Type `protobuf:"varint,2,opt,name=type,proto3,enum=adapter.newrelic.config.Params_MetricInfo_Type" json:"type,omitempty"` }
Describes how to represent an Istio metric instance in New Relic.
func (*Params_MetricInfo) Descriptor ¶
func (*Params_MetricInfo) Descriptor() ([]byte, []int)
func (*Params_MetricInfo) Equal ¶
func (this *Params_MetricInfo) Equal(that interface{}) bool
func (*Params_MetricInfo) GetName ¶
func (m *Params_MetricInfo) GetName() string
func (*Params_MetricInfo) GetType ¶
func (m *Params_MetricInfo) GetType() Params_MetricInfo_Type
func (*Params_MetricInfo) GoString ¶
func (this *Params_MetricInfo) GoString() string
func (*Params_MetricInfo) Marshal ¶
func (m *Params_MetricInfo) Marshal() (dAtA []byte, err error)
func (*Params_MetricInfo) MarshalTo ¶
func (m *Params_MetricInfo) MarshalTo(dAtA []byte) (int, error)
func (*Params_MetricInfo) ProtoMessage ¶
func (*Params_MetricInfo) ProtoMessage()
func (*Params_MetricInfo) Reset ¶
func (m *Params_MetricInfo) Reset()
func (*Params_MetricInfo) Size ¶
func (m *Params_MetricInfo) Size() (n int)
func (*Params_MetricInfo) String ¶
func (this *Params_MetricInfo) String() string
func (*Params_MetricInfo) Unmarshal ¶
func (m *Params_MetricInfo) Unmarshal(dAtA []byte) error
func (*Params_MetricInfo) XXX_DiscardUnknown ¶
func (m *Params_MetricInfo) XXX_DiscardUnknown()
func (*Params_MetricInfo) XXX_Marshal ¶
func (m *Params_MetricInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Params_MetricInfo) XXX_Merge ¶
func (m *Params_MetricInfo) XXX_Merge(src proto.Message)
func (*Params_MetricInfo) XXX_Size ¶
func (m *Params_MetricInfo) XXX_Size() int
func (*Params_MetricInfo) XXX_Unmarshal ¶
func (m *Params_MetricInfo) XXX_Unmarshal(b []byte) error
type Params_MetricInfo_Type ¶
type Params_MetricInfo_Type int32
New Relic Metric types.
const ( // Default and invalid unspecified type. // // An error will be logged and the metric dropped if unspecified. UNSPECIFIED Params_MetricInfo_Type = 0 // A New Relic `Gauge` type. // // This metric type represents the instantaneous state of something // or process that can both increase and decrease in value. // // For example, this metric type would be used to record: // // * the network throughput of a service // * the storage capacity used on a server // * the size of a queue GAUGE Params_MetricInfo_Type = 1 // A New Relic `Count` type. // // This metric type represents the number of occurrences for an event // within a time window. It is important to note that this is not the // cumulative tally of occurrences since the beginning of // measurements. Rather, this metric type represents the change in the // cumulative tally of events within a time window. // // For example, this metric type would be used to record: // // * the number of requests to a service // * the number of tasks submitted to a processor // * the number of errors produced COUNT Params_MetricInfo_Type = 2 // New Relic `Summary` type. // // This metric type reports aggregated information about discrete // events. The information is recorded as a count of events, average // event values, sum of event values, and the minimum and maximum // event values observed within a time window. // // For example, this metric type would be used to record: // // * the duration and count of requests to service // * the duration and count of database transactions // * the time each message spent in a queue SUMMARY Params_MetricInfo_Type = 3 )
func (Params_MetricInfo_Type) EnumDescriptor ¶
func (Params_MetricInfo_Type) EnumDescriptor() ([]byte, []int)
func (Params_MetricInfo_Type) String ¶
func (x Params_MetricInfo_Type) String() string
Click to show internal directories.
Click to hide internal directories.