Documentation
¶
Index ¶
- Constants
- type Recorder
- func (r *Recorder) RecordAWSAPIRequestCount(service string, operation string)
- func (r *Recorder) RecordAWSAPIRequestError(service string, operation string, errorcode string)
- func (r *Recorder) RecordOperationDuration(kind string, object string, operation string, duration time.Duration)
- func (r *Recorder) SetMeshActive(name string)
- func (r *Recorder) SetMeshInactive(name string)
- func (r *Recorder) SetRequestDuration(kind string, object string, operation string, duration time.Duration)
- func (r *Recorder) SetVirtualNodeActive(name string, mesh string)
- func (r *Recorder) SetVirtualNodeInactive(name string, mesh string)
- func (r *Recorder) SetVirtualServiceActive(name string, mesh string)
- func (r *Recorder) SetVirtualServiceInactive(name string, mesh string)
Constants ¶
const Subsystem = "appmesh"
Subsystem represents the Prometheus metrics prefix
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder exports mesh stats as Prometheus metrics
func NewRecorder ¶
NewRecorder registers the App Mesh metrics
func (*Recorder) RecordAWSAPIRequestCount ¶ added in v0.4.0
RecordAWSAPIRequestCount records count of AWS API call attempts
func (*Recorder) RecordAWSAPIRequestError ¶ added in v0.4.0
RecordAWSAPIRequestError records error count of AWS API calls
func (*Recorder) RecordOperationDuration ¶ added in v0.4.0
func (r *Recorder) RecordOperationDuration(kind string, object string, operation string, duration time.Duration)
RecordOperationDuration records the duration of operation (e.g. API Call, Function exection) based on object kind, name and operation type. Operation can be any string based on the context, e.g. get, create
func (*Recorder) SetMeshActive ¶
SetMeshActive sets the mesh gauge to 1
func (*Recorder) SetMeshInactive ¶
SetMeshActive sets the mesh gauge to 0 indicating that the object was deleted
func (*Recorder) SetRequestDuration ¶
func (r *Recorder) SetRequestDuration(kind string, object string, operation string, duration time.Duration)
SetRequestDuration records the duration of App Mesh API calls based on object kind, name and operation type The operation type can be get, create, update, delete
func (*Recorder) SetVirtualNodeActive ¶
SetVirtualNodeActive sets the virtual node gauge to 1
func (*Recorder) SetVirtualNodeInactive ¶
SetVirtualNodeInactive sets the mesh gauge to 0 indicating that the object was deleted
func (*Recorder) SetVirtualServiceActive ¶
SetVirtualServiceActive sets the virtual service gauge to 1
func (*Recorder) SetVirtualServiceInactive ¶
SetVirtualServiceInactive sets the mesh gauge to 0 indicating that the object was deleted