Documentation ¶
Index ¶
- type Config
- type DeleteInput
- type GetInput
- type GetOutput
- type MetricsExporter
- type PutInput
- type SampleObserver
- type Storage
- func (s *Storage) CacheStats() map[string]uint64
- func (s *Storage) Close() error
- func (s *Storage) Delete(di *DeleteInput) error
- func (s *Storage) DiskUsage() map[string]bytesize.ByteSize
- func (s *Storage) EnforceRetentionPolicy(rp *segment.RetentionPolicy) error
- func (s *Storage) Get(gi *GetInput) (*GetOutput, error)
- func (s *Storage) GetKeys(cb func(string) bool)
- func (s *Storage) GetKeysByQuery(query string, cb func(_k string) bool) error
- func (s *Storage) GetValues(key string, cb func(v string) bool)
- func (s *Storage) GetValuesByQuery(label string, query string, cb func(v string) bool) error
- func (s *Storage) InstallID() string
- func (s *Storage) JWT() (string, error)
- func (s *Storage) Put(pi *PutInput) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.2.5
type Config struct {
// contains filtered or unexported fields
}
type DeleteInput ¶ added in v0.0.33
type MetricsExporter ¶ added in v0.2.1
type MetricsExporter interface { // Evaluate evaluates metrics export rules against the input key and creates // prometheus counters for new time series, if required. Returned observer can // be used to evaluate and observe particular samples. // // If there are no matching rules, the function returns false. Evaluate(*PutInput) (SampleObserver, bool) }
MetricsExporter exports values of particular stack traces sample from profiling data as a Prometheus metrics.
type SampleObserver ¶ added in v0.2.1
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func New ¶
func New(c *Config, logger *logrus.Logger, reg prometheus.Registerer) (*Storage, error)
func (*Storage) CacheStats ¶ added in v0.0.33
func (*Storage) Delete ¶ added in v0.0.33
func (s *Storage) Delete(di *DeleteInput) error
func (*Storage) EnforceRetentionPolicy ¶ added in v0.2.5
func (s *Storage) EnforceRetentionPolicy(rp *segment.RetentionPolicy) error
func (*Storage) GetKeysByQuery ¶ added in v0.0.38
func (*Storage) GetValuesByQuery ¶ added in v0.0.38
Source Files ¶
Click to show internal directories.
Click to hide internal directories.