Documentation ¶
Index ¶
- Constants
- type Samples
- func (s *Samples) AddMetric(mesurement string, fields map[string]interface{}, tagss ...map[string]string)
- func (s *Samples) AddMetricFamilies(mfs []*dto.MetricFamily)
- func (s *Samples) AddMetricsBody(buf []byte, header http.Header, splitBody bool) error
- 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" PluginPostgres = "postgres" PluginElasticSearch = "elasticsearch" PluginKafka = "kafka" PluginBlackbox = "blackbox" PluginJson = "json" PluginPrometheus = "prometheus" PluginOracleDB = "oracledb" PluginWhois = "whois" PluginTomcat = "tomcat" PluginMemcached = "memcached" PluginConsul = "consul" PluginFilebeat = "filebeat" PluginZookeeper = "zookeeper" PluginNginx = "nginx" )
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) AddMetricFamilies ¶ added in v0.3.0
func (s *Samples) AddMetricFamilies(mfs []*dto.MetricFamily)
func (*Samples) AddMetricsBody ¶ added in v0.4.0
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.