Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultBindAddress is the default binding interface if none is specified. DefaultBindAddress = ":2003" // DefaultDatabase is the default database if none is specified. DefaultDatabase = "graphite" // DefaultProtocol is the default IP protocol used by the Graphite input. DefaultProtocol = "tcp" // DefaultConsistencyLevel is the default write consistency for the Graphite input. DefaultConsistencyLevel = "one" // DefaultSeparator is the default join character to use when joining multiple // measurment parts in a template. DefaultSeparator = "." // DefaultBatchSize is the default Graphite batch size. DefaultBatchSize = 1000 // DefaultBatchTimeout is the default Graphite batch timeout. DefaultBatchTimeout = time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { BindAddress string `toml:"bind-address"` Database string `toml:"database"` Enabled bool `toml:"enabled"` Protocol string `toml:"protocol"` BatchSize int `toml:"batch-size"` BatchTimeout toml.Duration `toml:"batch-timeout"` ConsistencyLevel string `toml:"consistency-level"` Templates []string `toml:"templates"` Tags []string `toml:"tags"` Separator string `toml:"separator"` }
Config represents the configuration for Graphite endpoints.
func (*Config) DefaultTags ¶
func (*Config) WithDefaults ¶
WithDefaults takes the given config and returns a new config with any required default values set.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser encapsulates a Graphite Parser.
func NewParserWithOptions ¶
NewParserWithOptions returns a graphite parser using the given options
type Service ¶
type Service struct { PointsWriter interface { WritePoints(p *cluster.WritePointsRequest) error } MetaStore interface { WaitForLeader(d time.Duration) error CreateDatabaseIfNotExists(name string) (*meta.DatabaseInfo, error) } // contains filtered or unexported fields }
func NewService ¶
NewService returns an instance of the Graphite service.
Click to show internal directories.
Click to hide internal directories.