fullerite: github.com/Yelp/fullerite/src/fullerite/collector Index | Files

package collector

import "github.com/Yelp/fullerite/src/fullerite/collector"

Package collector contains the actual fullerite collectors (and the corresponding tests). All collectors need to embed baseCollector. Look at one of the existing collectors (test.go) to see how this is done.

mesos collector (mesos.go): This collector runs on all mesos masters. It identifies the leader amongst masters and collects stats from this leader only. Mesos masters report stats on :5050/metrics/snapshot, which is JSON. All these stats are pushed via fullerite to the configured handlers. Some sanitization is performed to convert the names to a more metric-y style. For example, "masters/cpus" would be changed to "masters.cpu."

Index

Package Files

adhoc.go chronos.go collector.go cpu_info.go diamond.go doc.go docker_stats.go fullerite.go fullerite_http.go http_dropwizard.go http_generic.go marathon.go mesos.go mesos_slave.go mysql_binary_growth.go nerve_httpd.go nerve_uwsgi.go net_udp.go nginx.go nginx_nerve.go procstatus.go procstatus_linux.go smem.go socket_queue.go test.go uwsgi_nerve_worker_stats.go yaml.go

Constants

const (
    // MetricTypeCounter String for counter metric type
    MetricTypeCounter string = "COUNTER"
    // MetricTypeGauge String for Gauge metric type
    MetricTypeGauge string = "GAUGE"
)
const (
    // DefaultCollectionInterval the interval to collect on unless overridden by a collectors config
    DefaultCollectionInterval = 10
)
const (
    // DefaultDiamondCollectorPort is the TCP port that diamond
    // collectors write to and we read off of.
    DefaultDiamondCollectorPort = "19191"
)

func RegisterCollector Uses

func RegisterCollector(name string, f func(chan metric.Metric, int, *l.Entry) Collector)

RegisterCollector composes a map of collector names -> factor functions

type AdHoc Uses

type AdHoc struct {
    // contains filtered or unexported fields
}

AdHoc collector type

func (*AdHoc) Blacklist Uses

func (col *AdHoc) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*AdHoc) CanonicalName Uses

func (col *AdHoc) CanonicalName() string

CanonicalName : collector canonical name

func (AdHoc) Channel Uses

func (col AdHoc) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (AdHoc) Collect Uses

func (a AdHoc) Collect()

Collect Emits the metrics produce by the AdHoc script

func (*AdHoc) CollectorType Uses

func (col *AdHoc) CollectorType() string

CollectorType : collector type

func (*AdHoc) Configure Uses

func (a *AdHoc) Configure(configMap map[string]interface{})

Configure Override default parameters

func (*AdHoc) ContainsBlacklistedDimension Uses

func (col *AdHoc) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*AdHoc) DimensionsBlacklist Uses

func (col *AdHoc) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (AdHoc) Interval Uses

func (col AdHoc) Interval() int

Interval : the interval to collect the metrics on

func (AdHoc) Name Uses

func (col AdHoc) Name() string

Name : the name of the collector

func (*AdHoc) Prefix Uses

func (col *AdHoc) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*AdHoc) SetBlacklist Uses

func (col *AdHoc) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*AdHoc) SetCanonicalName Uses

func (col *AdHoc) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*AdHoc) SetCollectorType Uses

func (col *AdHoc) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*AdHoc) SetDimensionsBlacklist Uses

func (col *AdHoc) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*AdHoc) SetInterval Uses

func (col *AdHoc) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*AdHoc) SetPrefix Uses

func (col *AdHoc) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (AdHoc) String Uses

func (col AdHoc) String() string

String returns the collector name in printable format.

type CPUInfo Uses

type CPUInfo struct {
    // contains filtered or unexported fields
}

CPUInfo collector type Collect the CPU count and model name

func (*CPUInfo) Blacklist Uses

func (col *CPUInfo) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*CPUInfo) CanonicalName Uses

func (col *CPUInfo) CanonicalName() string

CanonicalName : collector canonical name

func (CPUInfo) Channel Uses

func (col CPUInfo) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (CPUInfo) Collect Uses

func (c CPUInfo) Collect()

Collect Emits the no of CPUs and ModelName

func (*CPUInfo) CollectorType Uses

func (col *CPUInfo) CollectorType() string

CollectorType : collector type

func (*CPUInfo) Configure Uses

func (c *CPUInfo) Configure(configMap map[string]interface{})

Configure Override default parameters

func (*CPUInfo) ContainsBlacklistedDimension Uses

func (col *CPUInfo) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*CPUInfo) DimensionsBlacklist Uses

func (col *CPUInfo) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (CPUInfo) Interval Uses

func (col CPUInfo) Interval() int

Interval : the interval to collect the metrics on

func (CPUInfo) Name Uses

func (col CPUInfo) Name() string

Name : the name of the collector

func (*CPUInfo) Prefix Uses

func (col *CPUInfo) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*CPUInfo) SetBlacklist Uses

func (col *CPUInfo) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*CPUInfo) SetCanonicalName Uses

func (col *CPUInfo) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*CPUInfo) SetCollectorType Uses

func (col *CPUInfo) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*CPUInfo) SetDimensionsBlacklist Uses

func (col *CPUInfo) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*CPUInfo) SetInterval Uses

func (col *CPUInfo) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*CPUInfo) SetPrefix Uses

func (col *CPUInfo) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (CPUInfo) String Uses

func (col CPUInfo) String() string

String returns the collector name in printable format.

type CPUValues Uses

type CPUValues struct {
    // contains filtered or unexported fields
}

CPUValues struct contains the last cpu-usage values in order to compute properly the current values. (see calculateCPUPercent() for more details)

type ChronosStats Uses

type ChronosStats struct {
    // contains filtered or unexported fields
}

ChronosStats Collector for chronos leader stats

func (*ChronosStats) Blacklist Uses

func (col *ChronosStats) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*ChronosStats) CanonicalName Uses

func (col *ChronosStats) CanonicalName() string

CanonicalName : collector canonical name

func (ChronosStats) Channel Uses

func (col ChronosStats) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (*ChronosStats) Collect Uses

func (m *ChronosStats) Collect()

Collect compares the leader against this hosts's hostaname and sends metrics if this is the leader

func (*ChronosStats) CollectorType Uses

func (col *ChronosStats) CollectorType() string

CollectorType : collector type

func (*ChronosStats) Configure Uses

func (m *ChronosStats) Configure(configMap map[string]interface{})

Configure just calls the default configure

func (*ChronosStats) ContainsBlacklistedDimension Uses

func (col *ChronosStats) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*ChronosStats) DimensionsBlacklist Uses

func (col *ChronosStats) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (ChronosStats) Interval Uses

func (col ChronosStats) Interval() int

Interval : the interval to collect the metrics on

func (ChronosStats) Name Uses

func (col ChronosStats) Name() string

Name : the name of the collector

func (*ChronosStats) Prefix Uses

func (col *ChronosStats) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*ChronosStats) SetBlacklist Uses

func (col *ChronosStats) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*ChronosStats) SetCanonicalName Uses

func (col *ChronosStats) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*ChronosStats) SetCollectorType Uses

func (col *ChronosStats) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*ChronosStats) SetDimensionsBlacklist Uses

func (col *ChronosStats) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*ChronosStats) SetInterval Uses

func (col *ChronosStats) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*ChronosStats) SetPrefix Uses

func (col *ChronosStats) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (ChronosStats) String Uses

func (col ChronosStats) String() string

String returns the collector name in printable format.

type Collector Uses

type Collector interface {
    Collect()
    Configure(map[string]interface{})

    // taken care of by the base class
    Name() string
    Channel() chan metric.Metric
    Interval() int
    SetInterval(int)
    CollectorType() string
    SetCollectorType(string)
    CanonicalName() string
    SetCanonicalName(string)
    Prefix() string
    SetPrefix(string)
    Blacklist() []string
    SetBlacklist([]string)
    DimensionsBlacklist() map[string]string
    SetDimensionsBlacklist(map[string]string)
    ContainsBlacklistedDimension(map[string]string) bool
}

Collector defines the interface of a generic collector.

func New Uses

func New(name string) Collector

New creates a new Collector based on the requested collector name.

func NewTest Uses

func NewTest(channel chan metric.Metric, initialInterval int, log *l.Entry) Collector

NewTest creates a new Test collector.

func NewYamlMetrics Uses

func NewYamlMetrics(channel chan metric.Metric, initialInterval int, log *l.Entry) Collector

NewYamlMetrics returns a initial collector, to be configured

type Diamond Uses

type Diamond struct {
    // contains filtered or unexported fields
}

Diamond collector type

func (*Diamond) Blacklist Uses

func (col *Diamond) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*Diamond) CanonicalName Uses

func (col *Diamond) CanonicalName() string

CanonicalName : collector canonical name

func (Diamond) Channel Uses

func (col Diamond) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (*Diamond) Collect Uses

func (d *Diamond) Collect()

Collect reads metrics collected from Diamond collectors, converts them to fullerite's Metric type and publishes them to handlers.

func (*Diamond) CollectorType Uses

func (col *Diamond) CollectorType() string

CollectorType : collector type

func (*Diamond) Configure Uses

func (d *Diamond) Configure(configMap map[string]interface{})

Configure the collector

func (*Diamond) ContainsBlacklistedDimension Uses

func (col *Diamond) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*Diamond) DimensionsBlacklist Uses

func (col *Diamond) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (Diamond) Interval Uses

func (col Diamond) Interval() int

Interval : the interval to collect the metrics on

func (Diamond) Name Uses

func (col Diamond) Name() string

Name : the name of the collector

func (*Diamond) Port Uses

func (d *Diamond) Port() string

Port returns Diamond collectors listen port

func (*Diamond) Prefix Uses

func (col *Diamond) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*Diamond) SetBlacklist Uses

func (col *Diamond) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*Diamond) SetCanonicalName Uses

func (col *Diamond) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*Diamond) SetCollectorType Uses

func (col *Diamond) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*Diamond) SetDimensionsBlacklist Uses

func (col *Diamond) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*Diamond) SetInterval Uses

func (col *Diamond) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*Diamond) SetPrefix Uses

func (col *Diamond) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (Diamond) String Uses

func (col Diamond) String() string

String returns the collector name in printable format.

type DockerStats Uses

type DockerStats struct {
    // contains filtered or unexported fields
}

DockerStats collector type. previousCPUValues contains the last cpu-usage values per container. dockerClient is the client for the Docker remote API.

func (*DockerStats) Blacklist Uses

func (col *DockerStats) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*DockerStats) CanonicalName Uses

func (col *DockerStats) CanonicalName() string

CanonicalName : collector canonical name

func (DockerStats) Channel Uses

func (col DockerStats) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (*DockerStats) Collect Uses

func (d *DockerStats) Collect()

Collect iterates on all the docker containers alive and, if possible, collects the correspondent memory and cpu statistics. For each container a gorutine is started to spin up the collection process.

func (*DockerStats) CollectorType Uses

func (col *DockerStats) CollectorType() string

CollectorType : collector type

func (*DockerStats) Configure Uses

func (d *DockerStats) Configure(configMap map[string]interface{})

Configure takes a dictionary of values with which the handler can configure itself.

func (*DockerStats) ContainsBlacklistedDimension Uses

func (col *DockerStats) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*DockerStats) DimensionsBlacklist Uses

func (col *DockerStats) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (*DockerStats) GetEndpoint Uses

func (d *DockerStats) GetEndpoint() string

GetEndpoint Returns endpoint of DockerStats instance

func (DockerStats) Interval Uses

func (col DockerStats) Interval() int

Interval : the interval to collect the metrics on

func (DockerStats) Name Uses

func (col DockerStats) Name() string

Name : the name of the collector

func (*DockerStats) Prefix Uses

func (col *DockerStats) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*DockerStats) SetBlacklist Uses

func (col *DockerStats) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*DockerStats) SetCanonicalName Uses

func (col *DockerStats) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*DockerStats) SetCollectorType Uses

func (col *DockerStats) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*DockerStats) SetDimensionsBlacklist Uses

func (col *DockerStats) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*DockerStats) SetInterval Uses

func (col *DockerStats) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*DockerStats) SetPrefix Uses

func (col *DockerStats) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (DockerStats) String Uses

func (col DockerStats) String() string

String returns the collector name in printable format.

type Fullerite Uses

type Fullerite struct {
    // contains filtered or unexported fields
}

Fullerite collector type

func (*Fullerite) Blacklist Uses

func (col *Fullerite) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*Fullerite) CanonicalName Uses

func (col *Fullerite) CanonicalName() string

CanonicalName : collector canonical name

func (Fullerite) Channel Uses

func (col Fullerite) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (Fullerite) Collect Uses

func (f Fullerite) Collect()

Collect produces some random test metrics.

func (*Fullerite) CollectorType Uses

func (col *Fullerite) CollectorType() string

CollectorType : collector type

func (*Fullerite) Configure Uses

func (f *Fullerite) Configure(configMap map[string]interface{})

Configure this takes a dictionary of values with which the handler can configure itself

func (*Fullerite) ContainsBlacklistedDimension Uses

func (col *Fullerite) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*Fullerite) DimensionsBlacklist Uses

func (col *Fullerite) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (Fullerite) Interval Uses

func (col Fullerite) Interval() int

Interval : the interval to collect the metrics on

func (Fullerite) Name Uses

func (col Fullerite) Name() string

Name : the name of the collector

func (*Fullerite) Prefix Uses

func (col *Fullerite) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*Fullerite) SetBlacklist Uses

func (col *Fullerite) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*Fullerite) SetCanonicalName Uses

func (col *Fullerite) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*Fullerite) SetCollectorType Uses

func (col *Fullerite) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*Fullerite) SetDimensionsBlacklist Uses

func (col *Fullerite) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*Fullerite) SetInterval Uses

func (col *Fullerite) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*Fullerite) SetPrefix Uses

func (col *Fullerite) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (Fullerite) String Uses

func (col Fullerite) String() string

String returns the collector name in printable format.

type MarathonStats Uses

type MarathonStats struct {
    // contains filtered or unexported fields
}

MarathonStats Collector for marathon leader stats

func (*MarathonStats) Blacklist Uses

func (col *MarathonStats) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*MarathonStats) CanonicalName Uses

func (col *MarathonStats) CanonicalName() string

CanonicalName : collector canonical name

func (MarathonStats) Channel Uses

func (col MarathonStats) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (*MarathonStats) Collect Uses

func (m *MarathonStats) Collect()

Collect compares the leader against this hosts's hostaname and sends metrics if this is the leader

func (*MarathonStats) CollectorType Uses

func (col *MarathonStats) CollectorType() string

CollectorType : collector type

func (*MarathonStats) Configure Uses

func (m *MarathonStats) Configure(configMap map[string]interface{})

Configure just calls the default configure

func (*MarathonStats) ContainsBlacklistedDimension Uses

func (col *MarathonStats) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*MarathonStats) DimensionsBlacklist Uses

func (col *MarathonStats) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (MarathonStats) Interval Uses

func (col MarathonStats) Interval() int

Interval : the interval to collect the metrics on

func (MarathonStats) Name Uses

func (col MarathonStats) Name() string

Name : the name of the collector

func (*MarathonStats) Prefix Uses

func (col *MarathonStats) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*MarathonStats) SetBlacklist Uses

func (col *MarathonStats) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*MarathonStats) SetCanonicalName Uses

func (col *MarathonStats) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*MarathonStats) SetCollectorType Uses

func (col *MarathonStats) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*MarathonStats) SetDimensionsBlacklist Uses

func (col *MarathonStats) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*MarathonStats) SetInterval Uses

func (col *MarathonStats) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*MarathonStats) SetPrefix Uses

func (col *MarathonStats) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (MarathonStats) String Uses

func (col MarathonStats) String() string

String returns the collector name in printable format.

type MesosSlaveStats Uses

type MesosSlaveStats struct {
    IP string
    // contains filtered or unexported fields
}

MesosSlaveStats Collector for mesos leader stats.

func (*MesosSlaveStats) Blacklist Uses

func (col *MesosSlaveStats) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*MesosSlaveStats) CanonicalName Uses

func (col *MesosSlaveStats) CanonicalName() string

CanonicalName : collector canonical name

func (MesosSlaveStats) Channel Uses

func (col MesosSlaveStats) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (*MesosSlaveStats) Collect Uses

func (m *MesosSlaveStats) Collect()

Collect Compares box IP against leader IP and if true, sends data.

func (*MesosSlaveStats) CollectorType Uses

func (col *MesosSlaveStats) CollectorType() string

CollectorType : collector type

func (*MesosSlaveStats) Configure Uses

func (m *MesosSlaveStats) Configure(configMap map[string]interface{})

Configure Override *baseCollector.Configure(). Will create the required MesosLeaderElect instance.

func (*MesosSlaveStats) ContainsBlacklistedDimension Uses

func (col *MesosSlaveStats) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*MesosSlaveStats) DimensionsBlacklist Uses

func (col *MesosSlaveStats) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (MesosSlaveStats) Interval Uses

func (col MesosSlaveStats) Interval() int

Interval : the interval to collect the metrics on

func (MesosSlaveStats) Name Uses

func (col MesosSlaveStats) Name() string

Name : the name of the collector

func (*MesosSlaveStats) Prefix Uses

func (col *MesosSlaveStats) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*MesosSlaveStats) SetBlacklist Uses

func (col *MesosSlaveStats) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*MesosSlaveStats) SetCanonicalName Uses

func (col *MesosSlaveStats) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*MesosSlaveStats) SetCollectorType Uses

func (col *MesosSlaveStats) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*MesosSlaveStats) SetDimensionsBlacklist Uses

func (col *MesosSlaveStats) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*MesosSlaveStats) SetInterval Uses

func (col *MesosSlaveStats) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*MesosSlaveStats) SetPrefix Uses

func (col *MesosSlaveStats) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (MesosSlaveStats) String Uses

func (col MesosSlaveStats) String() string

String returns the collector name in printable format.

type MesosStats Uses

type MesosStats struct {
    IP string
    // contains filtered or unexported fields
}

MesosStats Collector for mesos leader stats.

func (*MesosStats) Blacklist Uses

func (col *MesosStats) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*MesosStats) CanonicalName Uses

func (col *MesosStats) CanonicalName() string

CanonicalName : collector canonical name

func (MesosStats) Channel Uses

func (col MesosStats) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (*MesosStats) Collect Uses

func (m *MesosStats) Collect()

Collect Compares box IP against leader IP and if true, sends data.

func (*MesosStats) CollectorType Uses

func (col *MesosStats) CollectorType() string

CollectorType : collector type

func (*MesosStats) Configure Uses

func (m *MesosStats) Configure(configMap map[string]interface{})

Configure Override *baseCollector.Configure().

func (*MesosStats) ContainsBlacklistedDimension Uses

func (col *MesosStats) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*MesosStats) DimensionsBlacklist Uses

func (col *MesosStats) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (MesosStats) Interval Uses

func (col MesosStats) Interval() int

Interval : the interval to collect the metrics on

func (MesosStats) Name Uses

func (col MesosStats) Name() string

Name : the name of the collector

func (*MesosStats) Prefix Uses

func (col *MesosStats) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*MesosStats) SetBlacklist Uses

func (col *MesosStats) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*MesosStats) SetCanonicalName Uses

func (col *MesosStats) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*MesosStats) SetCollectorType Uses

func (col *MesosStats) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*MesosStats) SetDimensionsBlacklist Uses

func (col *MesosStats) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*MesosStats) SetInterval Uses

func (col *MesosStats) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*MesosStats) SetPrefix Uses

func (col *MesosStats) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (MesosStats) String Uses

func (col MesosStats) String() string

String returns the collector name in printable format.

type MySQLBinlogGrowth Uses

type MySQLBinlogGrowth struct {
    // contains filtered or unexported fields
}

MySQLBinlogGrowth collector

func (*MySQLBinlogGrowth) Blacklist Uses

func (col *MySQLBinlogGrowth) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*MySQLBinlogGrowth) CanonicalName Uses

func (col *MySQLBinlogGrowth) CanonicalName() string

CanonicalName : collector canonical name

func (MySQLBinlogGrowth) Channel Uses

func (col MySQLBinlogGrowth) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (*MySQLBinlogGrowth) Collect Uses

func (m *MySQLBinlogGrowth) Collect()

Collect emits the tota size of the mysql binary logs

func (*MySQLBinlogGrowth) CollectorType Uses

func (col *MySQLBinlogGrowth) CollectorType() string

CollectorType : collector type

func (*MySQLBinlogGrowth) Configure Uses

func (m *MySQLBinlogGrowth) Configure(configMap map[string]interface{})

Configure takes a dictionary of values with which the handler can configure itself.

func (*MySQLBinlogGrowth) ContainsBlacklistedDimension Uses

func (col *MySQLBinlogGrowth) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*MySQLBinlogGrowth) DimensionsBlacklist Uses

func (col *MySQLBinlogGrowth) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (MySQLBinlogGrowth) Interval Uses

func (col MySQLBinlogGrowth) Interval() int

Interval : the interval to collect the metrics on

func (MySQLBinlogGrowth) Name Uses

func (col MySQLBinlogGrowth) Name() string

Name : the name of the collector

func (*MySQLBinlogGrowth) Prefix Uses

func (col *MySQLBinlogGrowth) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*MySQLBinlogGrowth) SetBlacklist Uses

func (col *MySQLBinlogGrowth) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*MySQLBinlogGrowth) SetCanonicalName Uses

func (col *MySQLBinlogGrowth) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*MySQLBinlogGrowth) SetCollectorType Uses

func (col *MySQLBinlogGrowth) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*MySQLBinlogGrowth) SetDimensionsBlacklist Uses

func (col *MySQLBinlogGrowth) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*MySQLBinlogGrowth) SetInterval Uses

func (col *MySQLBinlogGrowth) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*MySQLBinlogGrowth) SetPrefix Uses

func (col *MySQLBinlogGrowth) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (MySQLBinlogGrowth) String Uses

func (col MySQLBinlogGrowth) String() string

String returns the collector name in printable format.

type NerveHTTPD Uses

type NerveHTTPD struct {
    // contains filtered or unexported fields
}

NerveHTTPD discovers Apache servers via Nerve config and reports metric for them

func (*NerveHTTPD) Blacklist Uses

func (col *NerveHTTPD) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*NerveHTTPD) CanonicalName Uses

func (col *NerveHTTPD) CanonicalName() string

CanonicalName : collector canonical name

func (NerveHTTPD) Channel Uses

func (col NerveHTTPD) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (*NerveHTTPD) Collect Uses

func (c *NerveHTTPD) Collect()

Collect the metrics

func (*NerveHTTPD) CollectorType Uses

func (col *NerveHTTPD) CollectorType() string

CollectorType : collector type

func (*NerveHTTPD) Configure Uses

func (c *NerveHTTPD) Configure(configMap map[string]interface{})

Configure the collector

func (*NerveHTTPD) ContainsBlacklistedDimension Uses

func (col *NerveHTTPD) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*NerveHTTPD) DimensionsBlacklist Uses

func (col *NerveHTTPD) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (NerveHTTPD) Interval Uses

func (col NerveHTTPD) Interval() int

Interval : the interval to collect the metrics on

func (NerveHTTPD) Name Uses

func (col NerveHTTPD) Name() string

Name : the name of the collector

func (*NerveHTTPD) Prefix Uses

func (col *NerveHTTPD) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*NerveHTTPD) SetBlacklist Uses

func (col *NerveHTTPD) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*NerveHTTPD) SetCanonicalName Uses

func (col *NerveHTTPD) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*NerveHTTPD) SetCollectorType Uses

func (col *NerveHTTPD) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*NerveHTTPD) SetDimensionsBlacklist Uses

func (col *NerveHTTPD) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*NerveHTTPD) SetInterval Uses

func (col *NerveHTTPD) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*NerveHTTPD) SetPrefix Uses

func (col *NerveHTTPD) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (NerveHTTPD) String Uses

func (col NerveHTTPD) String() string

String returns the collector name in printable format.

type ProcStatus Uses

type ProcStatus struct {
    // contains filtered or unexported fields
}

ProcStatus collector type

func (*ProcStatus) Blacklist Uses

func (col *ProcStatus) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*ProcStatus) CanonicalName Uses

func (col *ProcStatus) CanonicalName() string

CanonicalName : collector canonical name

func (ProcStatus) Channel Uses

func (col ProcStatus) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (ProcStatus) Collect Uses

func (ps ProcStatus) Collect()

Collect produces some random test metrics.

func (*ProcStatus) CollectorType Uses

func (col *ProcStatus) CollectorType() string

CollectorType : collector type

func (*ProcStatus) Configure Uses

func (ps *ProcStatus) Configure(configMap map[string]interface{})

Configure this takes a dictionary of values with which the handler can configure itself

func (*ProcStatus) ContainsBlacklistedDimension Uses

func (col *ProcStatus) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*ProcStatus) DimensionsBlacklist Uses

func (col *ProcStatus) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (ProcStatus) Interval Uses

func (col ProcStatus) Interval() int

Interval : the interval to collect the metrics on

func (ProcStatus) MatchCommandLine Uses

func (ps ProcStatus) MatchCommandLine() bool

MatchCommandLine returns ProcStatus collectors matches command line

func (ProcStatus) Name Uses

func (col ProcStatus) Name() string

Name : the name of the collector

func (ProcStatus) Pattern Uses

func (ps ProcStatus) Pattern() *regexp.Regexp

Pattern returns ProcStatus collectors search pattern

func (*ProcStatus) Prefix Uses

func (col *ProcStatus) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*ProcStatus) SetBlacklist Uses

func (col *ProcStatus) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*ProcStatus) SetCanonicalName Uses

func (col *ProcStatus) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*ProcStatus) SetCollectorType Uses

func (col *ProcStatus) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*ProcStatus) SetDimensionsBlacklist Uses

func (col *ProcStatus) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*ProcStatus) SetInterval Uses

func (col *ProcStatus) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*ProcStatus) SetPrefix Uses

func (col *ProcStatus) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (ProcStatus) String Uses

func (col ProcStatus) String() string

String returns the collector name in printable format.

type Regex Uses

type Regex struct {
    // contains filtered or unexported fields
}

Regex struct contains the info used to get the user specific dimensions from the docker env variables tag: is the environmental variable you want to get the value from regex: is the reg exp used to extract the value from the env var

type ServiceEndpoint Uses

type ServiceEndpoint struct {
    // Name is the service name
    Name string
    // Port is the service metrics endpoint port
    Port string
    // Path is the service metrics endpoint path (i.e. status/metrics)
    Path string
}

ServiceEndpoint defines a struct for endpoints

type SmemStats Uses

type SmemStats struct {
    // contains filtered or unexported fields
}

SmemStats Collector to record smem stats

func (*SmemStats) Blacklist Uses

func (col *SmemStats) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*SmemStats) CanonicalName Uses

func (col *SmemStats) CanonicalName() string

CanonicalName : collector canonical name

func (SmemStats) Channel Uses

func (col SmemStats) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (*SmemStats) Collect Uses

func (s *SmemStats) Collect()

Collect calls smem periodically

func (*SmemStats) CollectorType Uses

func (col *SmemStats) CollectorType() string

CollectorType : collector type

func (*SmemStats) Configure Uses

func (s *SmemStats) Configure(configMap map[string]interface{})

Configure Override *baseCollector.Configure(); will fetch the whitelisted processes

func (*SmemStats) ContainsBlacklistedDimension Uses

func (col *SmemStats) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*SmemStats) DimensionsBlacklist Uses

func (col *SmemStats) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (SmemStats) Interval Uses

func (col SmemStats) Interval() int

Interval : the interval to collect the metrics on

func (SmemStats) Name Uses

func (col SmemStats) Name() string

Name : the name of the collector

func (*SmemStats) Prefix Uses

func (col *SmemStats) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*SmemStats) SetBlacklist Uses

func (col *SmemStats) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*SmemStats) SetCanonicalName Uses

func (col *SmemStats) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*SmemStats) SetCollectorType Uses

func (col *SmemStats) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*SmemStats) SetDimensionsBlacklist Uses

func (col *SmemStats) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*SmemStats) SetInterval Uses

func (col *SmemStats) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*SmemStats) SetPrefix Uses

func (col *SmemStats) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (SmemStats) String Uses

func (col SmemStats) String() string

String returns the collector name in printable format.

type SocketQueue Uses

type SocketQueue struct {
    // contains filtered or unexported fields
}

SocketQueue reports output of "ss" command and reports the socket RecvQ value as a metric.

func (*SocketQueue) Blacklist Uses

func (col *SocketQueue) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*SocketQueue) CanonicalName Uses

func (col *SocketQueue) CanonicalName() string

CanonicalName : collector canonical name

func (SocketQueue) Channel Uses

func (col SocketQueue) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (SocketQueue) Collect Uses

func (ss SocketQueue) Collect()

Collect the receive queue size (RecvQ)

func (*SocketQueue) CollectorType Uses

func (col *SocketQueue) CollectorType() string

CollectorType : collector type

func (*SocketQueue) Configure Uses

func (ss *SocketQueue) Configure(configMap map[string]interface{})

Configure Override default parameters

func (*SocketQueue) ContainsBlacklistedDimension Uses

func (col *SocketQueue) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*SocketQueue) DimensionsBlacklist Uses

func (col *SocketQueue) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (SocketQueue) Interval Uses

func (col SocketQueue) Interval() int

Interval : the interval to collect the metrics on

func (SocketQueue) Name Uses

func (col SocketQueue) Name() string

Name : the name of the collector

func (*SocketQueue) Prefix Uses

func (col *SocketQueue) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*SocketQueue) SetBlacklist Uses

func (col *SocketQueue) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*SocketQueue) SetCanonicalName Uses

func (col *SocketQueue) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*SocketQueue) SetCollectorType Uses

func (col *SocketQueue) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*SocketQueue) SetDimensionsBlacklist Uses

func (col *SocketQueue) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*SocketQueue) SetInterval Uses

func (col *SocketQueue) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*SocketQueue) SetPrefix Uses

func (col *SocketQueue) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (SocketQueue) String Uses

func (col SocketQueue) String() string

String returns the collector name in printable format.

type Test Uses

type Test struct {
    // contains filtered or unexported fields
}

Test collector type

func (*Test) Blacklist Uses

func (col *Test) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*Test) CanonicalName Uses

func (col *Test) CanonicalName() string

CanonicalName : collector canonical name

func (Test) Channel Uses

func (col Test) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (Test) Collect Uses

func (t Test) Collect()

Collect produces some random test metrics.

func (*Test) CollectorType Uses

func (col *Test) CollectorType() string

CollectorType : collector type

func (*Test) Configure Uses

func (t *Test) Configure(configMap map[string]interface{})

Configure this takes a dictionary of values with which the handler can configure itself

func (*Test) ContainsBlacklistedDimension Uses

func (col *Test) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*Test) DimensionsBlacklist Uses

func (col *Test) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (Test) Interval Uses

func (col Test) Interval() int

Interval : the interval to collect the metrics on

func (Test) Name Uses

func (col Test) Name() string

Name : the name of the collector

func (*Test) Prefix Uses

func (col *Test) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*Test) SetBlacklist Uses

func (col *Test) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*Test) SetCanonicalName Uses

func (col *Test) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*Test) SetCollectorType Uses

func (col *Test) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*Test) SetDimensionsBlacklist Uses

func (col *Test) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*Test) SetInterval Uses

func (col *Test) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*Test) SetPrefix Uses

func (col *Test) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (Test) String Uses

func (col Test) String() string

String returns the collector name in printable format.

type YamlMetrics Uses

type YamlMetrics struct {
    // contains filtered or unexported fields
}

YamlMetrics collector extracts metrics from YAML data files

Supports two modes:

 - 'fullerite' (default):
   Recommended, as it allows full control of metric type, value, and dimensions,
   and is compatible with the Adhoc collector.
   Enabled explicitly by config option yamlFormat: "fullerite"
   Reads YAML 'metrics' key as an array of metrics, and
   for each of those, convert to a metrics.Metric object if possible
   (via remarshalling to JSON and using standard JSON unmarshal into object)
 - 'simple':
   Enabled by config option yamlFormat: "simple"
   Useful for reading snippets of data from preexisting sources (eg simple APIs, or Facter),
   or for very simple tools
   Reads YAML and trys to extract float64 gauges from top level keys
     - keys with numeric values
     - keys with stringy numeric values (eg "123", "123.01")
     - booleans and stringy bools: converts to 1/0 for true/false
     - does not support adding dimensions

Can read YAML data via different 'yamlSourceMethod': read from file ('file'), run a shell
pipeline ('shell'), or directly exec a script ('exec').

Config:
   metricPrefix     - prefix to add to Metrics, default 'yamlMetrics'.
   yamlSource       - source of YAML/JSON
   yamlSourceMethod - method to call source: file, shell, exec (defaut: file)
   yamlKeyWhitelist - array of regexps to filter keys processed,
                      useful in particular for facter or similar output
                      (only used in simple mode)

func (*YamlMetrics) Blacklist Uses

func (col *YamlMetrics) Blacklist() []string

Blacklist returns the list of metrics to be blacklisted for this collector

func (*YamlMetrics) CanonicalName Uses

func (col *YamlMetrics) CanonicalName() string

CanonicalName : collector canonical name

func (YamlMetrics) Channel Uses

func (col YamlMetrics) Channel() chan metric.Metric

Channel : the channel on which the collector should send metrics

func (*YamlMetrics) Collect Uses

func (c *YamlMetrics) Collect()

Collect Compares box IP against leader IP and if true, sends data.

func (*YamlMetrics) CollectorType Uses

func (col *YamlMetrics) CollectorType() string

CollectorType : collector type

func (*YamlMetrics) Configure Uses

func (c *YamlMetrics) Configure(configMap map[string]interface{})

Configure takes a dictionary of values with which the handler can configure itself

func (*YamlMetrics) ContainsBlacklistedDimension Uses

func (col *YamlMetrics) ContainsBlacklistedDimension(dimensions map[string]string) bool

ContainsBlacklistedDimension returns the true if dimensions passed as argument contain values blacklisted by the user

func (*YamlMetrics) DimensionsBlacklist Uses

func (col *YamlMetrics) DimensionsBlacklist() map[string]string

DimensionsBlacklist returns the list of dimensions to be blacklisted for this collector

func (*YamlMetrics) GetMetrics Uses

func (c *YamlMetrics) GetMetrics(yamlData []byte) (metrics []metric.Metric)

GetMetrics Get metrics from the YAML supplied

func (YamlMetrics) Interval Uses

func (col YamlMetrics) Interval() int

Interval : the interval to collect the metrics on

func (YamlMetrics) Name Uses

func (col YamlMetrics) Name() string

Name : the name of the collector

func (*YamlMetrics) Prefix Uses

func (col *YamlMetrics) Prefix() string

Prefix : return optional prefix for all metrics from this collector

func (*YamlMetrics) SetBlacklist Uses

func (col *YamlMetrics) SetBlacklist(blacklist []string)

SetBlacklist : set collector optional metrics blacklist

func (*YamlMetrics) SetCanonicalName Uses

func (col *YamlMetrics) SetCanonicalName(name string)

SetCanonicalName : collector canonical name

func (*YamlMetrics) SetCollectorType Uses

func (col *YamlMetrics) SetCollectorType(collectorType string)

SetCollectorType : collector type

func (*YamlMetrics) SetDimensionsBlacklist Uses

func (col *YamlMetrics) SetDimensionsBlacklist(blacklist map[string]string)

SetDimensionsBlacklist : set collector optional dimensions blacklist

func (*YamlMetrics) SetInterval Uses

func (col *YamlMetrics) SetInterval(interval int)

SetInterval : set the interval to collect on

func (*YamlMetrics) SetPrefix Uses

func (col *YamlMetrics) SetPrefix(prefix string)

SetPrefix : set the optional prefix for the collector

func (YamlMetrics) String Uses

func (col YamlMetrics) String() string

String returns the collector name in printable format.

Package collector imports 31 packages (graph). Updated 2019-11-12. Refresh now. Tools for package owners.

The go get command cannot install this package because of the following issues: