Documentation ¶
Index ¶
Constants ¶
View Source
const (
ReadHeaderTimeout = time.Second * 60
)
Variables ¶
This section is empty.
Functions ¶
func RegisterPrometheusIfEnabled ¶
RegisterPrometheusIfEnabled registers prometheus metrics if they are enabled.
Types ¶
type Config ¶
type Config struct { ListenAddress string `json:"listen_address"` ZPages bool `json:"zpages"` GRPC GRPCConfig `json:"grpc"` HTTP bool `json:"http"` DB bool `json:"db"` }
Config defined configuration format for diagnostics and performance metrics.
func (Config) AllDisabled ¶
AllDisabled returns true if all metrics options are disabled. Otherwise, false.
type GRPCConfig ¶
type GRPCConfig struct { Counters bool `json:"counters"` Durations bool `json:"durations"` Gateway bool `json:"gateway"` }
func (GRPCConfig) AllDisabled ¶
func (p GRPCConfig) AllDisabled() bool
Click to show internal directories.
Click to hide internal directories.