Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
LoggingLevel string `yaml:"logging" default:"info"`
MetricsAddr string `yaml:"metricsAddr" default:":9090"`
PProfAddr *string `yaml:"pprofAddr"`
// The name of the cannon
Name string `yaml:"name"`
// Ethereum configuration
Ethereum ethereum.Config `yaml:"ethereum"`
// Outputs configuration
Outputs []output.Config `yaml:"outputs"`
// Labels configures the cannon with labels
Labels map[string]string `yaml:"labels"`
// NTP Server to use for clock drift correction
NTPServer string `yaml:"ntpServer" default:"time.google.com"`
// Derivers configures the cannon with event derivers
Derivers deriver.Config `yaml:"derivers"`
// Coordinator configuration
Coordinator coordinator.Config `yaml:"coordinator"`
// Tracing configuration
Tracing observability.TracingConfig `yaml:"tracing"`
}
func (*Config) CreateSinks ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func (*Metrics) AddDecoratedEvent ¶
func (m *Metrics) AddDecoratedEvent(count int, eventType *xatu.DecoratedEvent, network string)
Click to show internal directories.
Click to hide internal directories.