Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) AddPushPullReceivedChanges(count int)
- func (m *Metrics) AddPushPullReceivedOperations(count int)
- func (m *Metrics) AddPushPullSentChanges(count int)
- func (m *Metrics) AddPushPullSentOperations(count int)
- func (m *Metrics) AddPushPullSnapshotBytes(bytes int)
- func (m *Metrics) ObservePushPullResponseSeconds(seconds float64)
- func (m *Metrics) ObservePushPullSnapshotDurationSeconds(seconds float64)
- func (m *Metrics) RegisterGRPCServer(server *grpc.Server)
- func (m *Metrics) Registry() *prometheus.Registry
- func (m *Metrics) ServerMetrics() *grpcprometheus.ServerMetrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics manages the metric information that Yorkie is trying to measure.
func (*Metrics) AddPushPullReceivedChanges ¶
AddPushPullReceivedChanges sets the number of changes included in the request pack of PushPull.
func (*Metrics) AddPushPullReceivedOperations ¶
AddPushPullReceivedOperations sets the number of operations included in the request pack of PushPull.
func (*Metrics) AddPushPullSentChanges ¶
AddPushPullSentChanges adds the number of changes included in the response pack of PushPull.
func (*Metrics) AddPushPullSentOperations ¶
AddPushPullSentOperations adds the number of operations included in the response pack of PushPull.
func (*Metrics) AddPushPullSnapshotBytes ¶
AddPushPullSnapshotBytes adds the snapshot byte size of response pack.
func (*Metrics) ObservePushPullResponseSeconds ¶
ObservePushPullResponseSeconds adds an observation for response time of PushPull.
func (*Metrics) ObservePushPullSnapshotDurationSeconds ¶
ObservePushPullSnapshotDurationSeconds adds an observation for creating snapshot for the response pack.
func (*Metrics) RegisterGRPCServer ¶
RegisterGRPCServer registers the given gRPC server.
func (*Metrics) Registry ¶
func (m *Metrics) Registry() *prometheus.Registry
Registry returns the registry of this metrics.
func (*Metrics) ServerMetrics ¶
func (m *Metrics) ServerMetrics() *grpcprometheus.ServerMetrics
ServerMetrics returns the serverMetrics.