Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusReporter ¶
type PrometheusReporter struct {
// contains filtered or unexported fields
}
PrometheusReporter is translating events into Prometheus metrics
func NewPrometheusReporter ¶
func NewPrometheusReporter(registry prometheus.Registerer) *PrometheusReporter
NewPrometheusReporter creates a new PrometheusReporter instance
func (*PrometheusReporter) WriteMetrics ¶
func (p *PrometheusReporter) WriteMetrics(events []m.Metric) error
WriteMetrics converts the received into Prometheus metrics. Any are registered in the Prometheus registry the first time they created and we update these metrics later. This way we can manage counters correctly.
Click to show internal directories.
Click to hide internal directories.