metrics

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BatchPinCounter prometheus.Counter
View Source
var MetricsBatchPin = "ff_batchpin_total"

MetricsBatchPin is the prometheus metric for total number of batch pins submitted

Functions

func Clear

func Clear()

Clear will reset the Prometheus metrics registry and instrumentations, useful for testing

func GetAdminServerInstrumentation added in v0.12.0

func GetAdminServerInstrumentation() *muxprom.Instrumentation

GetAdminServerInstrumentation returns the admin server's Prometheus middleware, ensuring its metrics are never registered twice

func GetRestServerInstrumentation added in v0.12.0

func GetRestServerInstrumentation() *muxprom.Instrumentation

GetRestServerInstrumentation returns the REST server's Prometheus middleware, ensuring its metrics are never registered twice

func Registry

func Registry() *prometheus.Registry

Registry returns FireFly's customized Prometheus registry

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL