Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(cfg *config.CirconusConfig, err error) error
func NewMetricDestination ¶
func NewMetricDestination(id, name, instanceID, checkNamePrefix string, logger cua.Logger) (*trapmetrics.TrapMetrics, error)
NewMetricDestination will find/retrieve/create a new circonus check bundle and add it to a trap metrics instance to be used as a metric destination.
id = the plugin's actual id/name (e.g. inputs.cpu would be cpu, inputs.snmp would be snmp) name = a vanity name used in the display name of the check instanceID = plugin's instance_id setting from the config checkNamePrefix = used in the display name and target of the check logger = an instance of cua logger (already configured for the plugin requesting the metric destination)
Types ¶
Click to show internal directories.
Click to hide internal directories.