Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPCRInstanceTagTransformer ¶
NewPCRInstanceTagTransformer returns a function for transforming perf counter measurements
func NewPCRMetricNamesTransformer ¶
NewPCRMetricNamesTransformer returns a function for tranforming perf counter metric names as parsed from telegraf into something matching the SignalFx PerfCounterReporter
func NewPCRReplacer ¶
NewPCRReplacer returns a new replacer for sanitizing metricnames and instances like SignalFx PCR
Types ¶
type Config ¶
type Config struct { config.MonitorConfig `acceptsEndpoints:"false" deepcopier:"skip"` Object []PerfCounterObj `yaml:"objects" default:"[]"` // The frequency that counter paths should be expanded // and how often to refresh counters from configuration. // This is expressed as a duration. CountersRefreshInterval time.Duration `yaml:"counterRefreshInterval" default:"5s"` // If `true`, instance indexes will be included in instance names, and wildcards will // be expanded and localized (if applicable). If `false`, non partial wildcards will // be expanded and instance names will not include instance indexes. UseWildcardsExpansion bool `yaml:"useWildCardExpansion"` // Print out the configurations that match available performance counters PrintValid bool `yaml:"printValid"` // If `true`, metric names will be emitted in the format emitted by the // SignalFx PerfCounterReporter PCRMetricNames bool `yaml:"pcrMetricNames" default:"false"` }
Config for this monitor
type PerfCounterObj ¶
type PerfCounterObj struct { // The name of a windows performance counter object ObjectName string `yaml:"objectName"` // The name of the counters to collect from the performance counter object Counters []string `yaml:"counters" default:"[]"` // The windows performance counter instances to fetch for the performance counter object Instances []string `yaml:"instances" default:"[]"` // The name of the telegraf measurement that will be used as a metric name Measurement string `yaml:"measurement"` // Log a warning if the perf counter object is missing WarnOnMissing bool `yaml:"warnOnMissing" default:"false"` // Panic if the performance counter object is missing (this will stop the agent) FailOnMissing bool `yaml:"failOnMissing" default:"false"` // Include the total instance when collecting performance counter metrics IncludeTotal bool `yaml:"includeTotal" default:"false"` }
PerfCounterObj represents a windows performance counter object to monitor
Click to show internal directories.
Click to hide internal directories.