Documentation
¶
Overview ¶
Package metrics provides what in prometheus terms is called a metrics exporter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶ added in v0.6.94
type Exporter struct { }
Exporter can be used to both capture and serve metrics.
func (*Exporter) IncSelectedSource ¶ added in v0.6.94
INcSelectedSource is used to update the number of times a source was chosen.
func (*Exporter) SendDataFlow ¶ added in v0.6.94
SendDataFlow can be used to update the metrics exported by the broker about network usage, in particular upload and download bandwidth. `data` Type should either be "read" or "write", referring respectively to download and upload operations.
Click to show internal directories.
Click to hide internal directories.