Versions in this module Expand all Collapse all v1 v1.7.9 Oct 27, 2019 Changes in this version + const DefaultStoreDatabase + const DefaultStoreEnabled + const DefaultStoreInterval + const MonitorRetentionPolicy + const MonitorRetentionPolicyDuration + const MonitorRetentionPolicyReplicaN + type Config struct + StoreDatabase string + StoreEnabled bool + StoreInterval toml.Duration + func NewConfig() Config + func (c Config) Diagnostics() (*diagnostics.Diagnostics, error) + func (c Config) Validate() error + type Monitor struct + Branch string + BuildTime string + Commit string + Logger *zap.Logger + MetaClient interface{ ... } + PointsWriter PointsWriter + Version string + func New(r Reporter, c Config) *Monitor + func (m *Monitor) Close() error + func (m *Monitor) DeregisterDiagnosticsClient(name string) + func (m *Monitor) Diagnostics() (map[string]*diagnostics.Diagnostics, error) + func (m *Monitor) Enabled() bool + func (m *Monitor) Open() error + func (m *Monitor) RegisterDiagnosticsClient(name string, client diagnostics.Client) + func (m *Monitor) SetGlobalTag(key string, value interface{}) + func (m *Monitor) SetPointsWriter(pw PointsWriter) error + func (m *Monitor) Statistics(tags map[string]string) ([]*Statistic, error) + func (m *Monitor) WithLogger(log *zap.Logger) + func (m *Monitor) WritePoints(p models.Points) error + type PointsWriter interface + WritePoints func(database, retentionPolicy string, points models.Points) error + type RemoteWriterConfig struct + ClusterID uint64 + NodeID string + Password string + RemoteAddr string + Username string + type Reporter interface + Statistics func(tags map[string]string) []models.Statistic + type Statistic struct + func (s *Statistic) ValueNames() []string + type Statistics []*Statistic + func (a Statistics) Len() int + func (a Statistics) Less(i, j int) bool + func (a Statistics) Swap(i, j int)