Documentation ¶
Index ¶
- Constants
- type Samples
- func (s *Samples) AddMetric(mesurement string, fields map[string]interface{}, tagss ...map[string]string)
- func (s *Samples) AddPromMetric(m prometheus.Metric) error
- func (s *Samples) Len() int
- func (s *Samples) PopBackAll() []metric.Metric
- func (s *Samples) PopBackN(n int) []metric.Metric
- func (s *Samples) PushFront(m metric.Metric)
- func (s *Samples) PushFrontN(ms []metric.Metric)
Constants ¶
View Source
const ( PluginMySQL = "mysql" PluginRedis = "redis" PluginMongoDB = "mongodb" PluginPostgreSQL = "postgresql" PluginElasticSearch = "elasticsearch" PluginKafka = "kafka" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Samples ¶
type Samples struct {
// contains filtered or unexported fields
}
func NewSamples ¶
func NewSamples() *Samples
func (*Samples) AddPromMetric ¶
func (s *Samples) AddPromMetric(m prometheus.Metric) error
func (*Samples) PopBackAll ¶
func (*Samples) PushFrontN ¶
Click to show internal directories.
Click to hide internal directories.