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.
Click to show internal directories.
Click to hide internal directories.