appmetrics

package
v0.0.0-...-4b72d78 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(config Config) error

Run starts the goroutines and servers that handle metrics.

Types

type Config

type Config struct {
	DebugBindPort  int
	DebugBindAddr  string
	GraphiteHost   string
	MetricHostname string
	AppName        string
	FlushInterval  time.Duration
}

type MethodMetrics

type MethodMetrics struct {
	Success metrics.Counter
	Fail    metrics.Counter
	Timer   metrics.Timer
}

MethodMetrics holds the metrics we collect on any func/method making requests.

Jump to

Keyboard shortcuts

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