Documentation ¶
Index ¶
Constants ¶
View Source
const PREFIX = "bolt.boltobserver"
PREFIX is the prefix for all metrics
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckerMonitoring ¶
type CheckerMonitoring struct {
// contains filtered or unexported fields
}
CheckerMonitoring struct
func NewCheckerMonitoring ¶
func NewCheckerMonitoring(name, env, graphiteHost, graphitePort string) *CheckerMonitoring
NewCheckerMonitoring constructs a new CheckerMonitoring instance
func NewNopCheckerMonitoring ¶
func NewNopCheckerMonitoring(name string) *CheckerMonitoring
NewNopCheckerMonitoring constructs a new CheckerMonitoring that does nothing
func (*CheckerMonitoring) MetricsReport ¶
func (c *CheckerMonitoring) MetricsReport(name, val string, tags map[string]string)
MetricsReport - is used to report a metric
func (*CheckerMonitoring) MetricsTimer ¶
func (c *CheckerMonitoring) MetricsTimer(name string, tags map[string]string) func()
MetricsTimer - is used to time function executions
Click to show internal directories.
Click to hide internal directories.