Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a factory for the routing processor.
Types ¶
type Config ¶
type Config struct {
// Table contains the routing table for this processor.
// Required, must be non-empty.
Table []RoutingTableItem `mapstructure:"table"`
}
Config defines configuration for the Routing processor.
type RoutingTableItem ¶
type RoutingTableItem struct {
// Weight is relative weight within the table.
Weight int `mapstructure:"weight"`
// Exporters contains the list of exporters to use when this
// table item is selected. Must be non-empty.
Exporters []string `mapstructure:"exporters"`
}
RoutingTableItem specifies how data should be routed to the different exporters
Click to show internal directories.
Click to hide internal directories.