Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsInterface ¶
type MetricsInterface interface {
RecordFromCodec(codec codec.CodecInterface)
}
MetricsInterface represents the metrics interface for all available providers
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
Prometheus represents the prometheus struct for collecting metrics
func NewPrometheus ¶
func NewPrometheus(service string) *Prometheus
NewPrometheus initializes a new prometheus metric instance
func (*Prometheus) RecordFromCodec ¶
func (m *Prometheus) RecordFromCodec(codec codec.CodecInterface)
RecordFromCodec sends the given codec into the codec channel to be read from recorder
Click to show internal directories.
Click to hide internal directories.