Add metrics implementation* Covers proxy service on server side* Update documentation

This commit is contained in:
Travis Groth 2019-06-10 21:17:32 -04:00
parent fb3ed64fa1
commit ff528e8c7b
10 changed files with 310 additions and 1 deletions

View file

@ -133,6 +133,9 @@ type Options struct {
// Enable proxying of websocket connections. Defaults to "false".
// Caution: Enabling this feature could result in abuse via DOS attacks.
AllowWebsockets bool `mapstructure:"allow_websockets"`
// Address/Port to bind to for prometheus metrics
MetricsAddr string `mapstructure:"metrics_address"`
}
// NewOptions returns a new options struct with default values