Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultStartupDelay = time.Minute DefaultWALDirectory = "data/wal" DefaultAdminListenAddress = "0.0.0.0:9091" DefaultPrometheusEndpoint = "http://127.0.0.1:9090/" DefaultMaxPointAge = time.Hour * 25 DefaultExportTimeout = time.Second * 60 DefaultReportingPeriod = time.Second * 30 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminConfig ¶
type AdminConfig struct {
ListenAddress string `json:"listen_address"`
}
type DurationConfig ¶
func (DurationConfig) MarshalJSON ¶
func (d DurationConfig) MarshalJSON() ([]byte, error)
func (*DurationConfig) UnmarshalJSON ¶
func (d *DurationConfig) UnmarshalJSON(data []byte) error
type FileReadFunc ¶
type MainConfig ¶
type MainConfig struct { Destination OTLPConfig `json:"destination"` Prometheus PromConfig `json:"prometheus"` OpenTelemetry OTelConfig `json:"opentelemetry"` Admin AdminConfig `json:"admin"` Security SecurityConfig `json:"security"` Diagnostics OTLPConfig `json:"diagnostics"` StartupDelay DurationConfig `json:"startup_delay"` Filters []string `json:"filters"` MetricRenames []MetricRenamesConfig `json:"metric_renames"` StaticMetadata []StaticMetadataConfig `json:"static_metadata"` LogConfig LogConfig `json:"log_config"` // This field cannot be parsed inside a configuration file, // only can be set by command-line flag.: ConfigFilename string `json:"-" yaml:"-"` }
func Configure ¶
func Configure(args []string, readFunc FileReadFunc) (MainConfig, map[string]string, []*metadata.Entry, error)
Configure is a separate unit of code for testing purposes.
func DefaultMainConfig ¶
func DefaultMainConfig() MainConfig
type MetricRenamesConfig ¶
type OTLPConfig ¶
type OTelConfig ¶
type PromConfig ¶
type PromConfig struct { Endpoint string `json:"endpoint"` WAL string `json:"wal"` MaxPointAge DurationConfig `json:"max_point_age"` }
type SecurityConfig ¶
type SecurityConfig struct {
RootCertificates []string `json:"root_certificates"`
}
Click to show internal directories.
Click to hide internal directories.