Documentation
¶
Index ¶
- Constants
- type Recorder
- 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) 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