Versions in this module Expand all Collapse all v1 v1.7.9 Oct 27, 2019 Changes in this version + const DefaultBatchPending + const DefaultBatchSize + const DefaultBatchTimeout + const DefaultBindAddress + const DefaultCertificate + const DefaultConsistencyLevel + const DefaultDatabase + const DefaultRetentionPolicy + type Config struct + BatchPending int + BatchSize int + BatchTimeout toml.Duration + BindAddress string + Certificate string + ConsistencyLevel string + Database string + Enabled bool + LogPointErrors bool + RetentionPolicy string + TLS *tls.Config + TLSEnabled bool + func NewConfig() Config + func (c *Config) WithDefaults() *Config + type Configs []Config + func (c Configs) Diagnostics() (*diagnostics.Diagnostics, error) + func (c Configs) Enabled() bool + type Handler struct + Database string + Logger *zap.Logger + PointsWriter interface{ ... } + RetentionPolicy string + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Service struct + BindAddress string + Database string + LogPointErrors bool + Logger *zap.Logger + MetaClient interface{ ... } + PointsWriter interface{ ... } + RetentionPolicy string + func NewService(c Config) (*Service, error) + func (s *Service) Addr() net.Addr + func (s *Service) Close() error + func (s *Service) Closed() bool + func (s *Service) Open() error + func (s *Service) Statistics(tags map[string]string) []models.Statistic + func (s *Service) WithLogger(log *zap.Logger) + type Statistics struct + ActiveConnections int64 + ActiveTelnetConnections int64 + BatchesTransmitFail int64 + BatchesTransmitted int64 + HTTPConnectionsHandled int64 + HandledConnections int64 + HandledTelnetConnections int64 + InvalidDroppedPoints int64 + PointsTransmitted int64 + TelnetBadFloat int64 + TelnetBadLine int64 + TelnetBadTag int64 + TelnetBadTime int64 + TelnetBytesReceived int64 + TelnetPointsReceived int64 + TelnetReadError int64