Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveExporter ¶
type ActiveExporter struct { Metrics Metrics Client *b.Client // contains filtered or unexported fields }
ActiveExporter Push metrics to your favourite Warp10 instance You can manually tell this exporter to flush metrics or let a ticker do it for you
func NewActiveExporter ¶
NewActiveExporter Return an instanciated ActiveExporter Default behaviour is to send batch of metric at Period interval If period is nil, you have to manually Flush metrics. If the exporter failed to push metrics, it will keep them for the next batch and send you an error in the chan
func (*ActiveExporter) AddMetricToNextBatch ¶
func (ae *ActiveExporter) AddMetricToNextBatch(m Metric)
AddMetricToNextBatch add a new metric to the next Flush call or Period
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is a metric that can only grow
func NewCounter ¶
NewCounter initialize a new counter
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge is a metric that can only grow
type HandlerExporter ¶
type HandlerExporter struct { Metrics Metrics Handler http.HandlerFunc }
HandlerExporter allow you to add a route on your application
func NewHandlerExporter ¶
func NewHandlerExporter() *HandlerExporter
NewHandlerExporter Return an instanciated HandlerExporter
func (*HandlerExporter) Register ¶
func (he *HandlerExporter) Register(m Metric)
Register add a new metric to the bundle
type PassiveExporter ¶
type PassiveExporter struct { Metrics Metrics // contains filtered or unexported fields }
PassiveExporter Expose your metrics on a web page in Sensision format Tools like Beamium cqn scrappe it
func NewPassiveExporter ¶
func NewPassiveExporter(listen, path string) (*PassiveExporter, error)
NewPassiveExporter Return an instanciated PassiveExporter
func (*PassiveExporter) Register ¶
func (pe *PassiveExporter) Register(m Metric)
Register add a new metric to the bundle