metrics

package module
v0.0.0-...-fce6733 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpMetrics

func HttpMetrics(vp *viper.Viper, meta map[string]any, opts ...func(*http.Server)) (
	shutdown func() error, err error)
yaml config:

```yaml prometheus: true debug: true addr: :8080 ```

routes: - /healthz - /metrics - /debug/meta - /debug/pprof/expvar - /debug/pprof/ - /debug/pprof/profile - /debug/pprof/trace - /debug/pprof/cmdline - /debug/pprof/symbol - /debug/pprof/allocs - /debug/pprof/block - /debug/pprof/goroutine - /debug/pprof/heap - /debug/pprof/mutex - /debug/pprof/threadcreate

Types

This section is empty.

Jump to

Keyboard shortcuts

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