observability

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*MetricsConfig  `json:",inline"`
	ZapLoggerConfig string `json:"zap-logger-config"`

	LoggerCfg *zap.Config `json:"-"`
}

func DefaultConfig

func DefaultConfig() *Config

func Parse

func Parse(content []byte) (*Config, error)

func ParseFromMap

func ParseFromMap(content map[string]string) (*Config, error)

func ReadFromFile

func ReadFromFile(file string) (*Config, error)

func (*Config) ToMap

func (c *Config) ToMap() (map[string]string, error)

type MetricsConfig

type MetricsConfig struct {
	BackendDestination     string `json:"metrics.backend-destination"`
	ReportingPeriodSeconds int    `json:"metrics.reporting-period-seconds"`
	PrometheusPort         int    `json:"metrics.prometheus-port"`
	OpenCensusAddress      string `json:"metrics.opencensus-address"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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