Versions in this module Expand all Collapse all v0 v0.5.0 Mar 10, 2020 Changes in this version + var AmountsCounter = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + var EventsCounter = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + func MustRegisterMetrics() + type AmountType string + const ContainerSeconds + const NodeSeconds + const Samples + const WeaveNetSeconds + type Amounts map[AmountType]int64 + type Client struct + func NewClient(cfg Config) (*Client, error) + func (c *Client) AddAmounts(uniqueKey, internalInstanceID string, timestamp time.Time, amounts Amounts, ...) error + func (c *Client) Close() error + type Config struct + IngesterHostPort string + MaxBufferedEvents int + RetryDelay time.Duration + func (c *Config) RegisterFlags(f *flag.FlagSet) + type Event struct + Amounts Amounts + InternalInstanceID string + Metadata map[string]string + OccurredAt time.Time + UniqueKey string