Documentation ¶
Index ¶
- type Reporter
- func (r *Reporter) Counter(name, desc string, log logrus.FieldLogger, fields ...string) metrics.Counter
- func (r *Reporter) Int64(name, desc string, log logrus.FieldLogger, fields ...string) metrics.Int64
- func (r *Reporter) Report(ctx context.Context, log logrus.FieldLogger, freq time.Duration) error
- func (r *Reporter) ReportNow(log logrus.FieldLogger)
- type Valuer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter []Valuer
Reporter is a collection of metric values to report.
func (*Reporter) Counter ¶
func (r *Reporter) Counter(name, desc string, log logrus.FieldLogger, fields ...string) metrics.Counter
Counter configures a new Counter metric to report
func (*Reporter) ReportNow ¶
func (r *Reporter) ReportNow(log logrus.FieldLogger)
ReportNow reports all metrics once, immediately
Click to show internal directories.
Click to hide internal directories.