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" // DefaultNameSeparator represents the default field separator. DefaultNameSeparator = "." // DefaultNamePosition represents the default location of the name. DefaultNamePosition = "last" // 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" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BindAddress string `toml:"bind-address"` Database string `toml:"database"` Enabled bool `toml:"enabled"` Protocol string `toml:"protocol"` NamePosition string `toml:"name-position"` NameSeparator string `toml:"name-separator"` BatchSize int `toml:"batch-size"` BatchTimeout toml.Duration `toml:"batch-timeout"` ConsistencyLevel string `toml:"consistency-level"` }
Config represents the configuration for Graphite endpoints.
func (*Config) LastEnabled ¶
LastEnabled returns whether the server should interpret the last field as "name".
type Parser ¶
Parser encapulates a Graphite Parser.
func (*Parser) DecodeNameAndTags ¶
DecodeNameAndTags parses the name and tags of a single field of a Graphite datum.
type Service ¶
type Service struct { PointsWriter interface { WritePoints(p *cluster.WritePointsRequest) 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.