Documentation ¶
Index ¶
- func AddGlobalTags(tags map[string]string)
- func AddMetricToDest(dest *trapmetrics.TrapMetrics, pluginID, metricGroup, metricName string, ...) error
- func ConvertTags(pluginID, metricGroup string, tags, staticTags map[string]string) trapmetrics.Tags
- func GCPMetricTypePrefixInclude() []string
- func GetGlobalTags() trapmetrics.Tags
- func Initialize(cfg *config.CirconusConfig, err error) error
- func NewMetricDestination(opts *MetricDestConfig, logger cua.Logger) (*trapmetrics.TrapMetrics, error)
- func Ready() bool
- type Circonus
- type Logshim
- type MetricDestConfig
- type MetricMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGlobalTags ¶ added in v0.0.26
func AddMetricToDest ¶ added in v0.0.24
func ConvertTags ¶ added in v0.0.24
func GCPMetricTypePrefixInclude ¶ added in v0.0.35
func GCPMetricTypePrefixInclude() []string
GCPMetricTypePrefixInclude returns default list of metric type prefixes to include for circonus_stackdriver input plugin ONLY
func GetGlobalTags ¶ added in v0.0.26
func GetGlobalTags() trapmetrics.Tags
func Initialize ¶
func Initialize(cfg *config.CirconusConfig, err error) error
func NewMetricDestination ¶
func NewMetricDestination(opts *MetricDestConfig, 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.
pluginID = id/name (e.g. inputs.cpu would be cpu, inputs.snmp would be snmp) instanceID = instance_id setting from the config metricGroupID = group of metrics from the plugin (some offer multiple) hostname = 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 ¶
type Logshim ¶
type Logshim struct {
// contains filtered or unexported fields
}
Logshim is for api and traps - it uses the info level and agent debug logging are controlled independently
type MetricDestConfig ¶ added in v0.0.28
type MetricDestConfig struct { DebugAPI *bool // allow override of api debugging per output TraceMetrics *string // allow override of metric tracing per output APIToken string // allow override of api token for a specific plugin (dm input or circonus output) Broker string // allow override of broker for a specific plugin (dm input or circonus output) Hostname string // allow override of hostname for a specific plugin (dm input or circonus output) MetricMeta MetricMeta }
type MetricMeta ¶ added in v0.0.35
type MetricMeta struct { PluginID string // plugin id or name (e.g. snmp, ping, etc.) InstanceID string // plugin instance id (all plugins require an instance_id setting) MetricGroupID string // metric group id (some plugins produce multiple "metric groups") ProjectID string // metric tag project_id (stackdriver_circonus) }
func (MetricMeta) Key ¶ added in v0.0.35
func (m MetricMeta) Key() string
Click to show internal directories.
Click to hide internal directories.