Common configuration settings for monitors đź”—
The following config options are common to all monitors, which can be used with the Collector using the Smart Agent receiver:
Config option |
Default |
Required |
Type |
Description |
---|---|---|---|---|
|
no |
|
The type of the monitor |
|
|
no |
|
The rule used to match up this configuration with a discovered endpoint. If blank, the configuration runs immediately when the agent is started. If multiple endpoints match this rule, multiple instances of the monitor type are created with the same configuration, except for different hosts or ports. |
|
|
|
no |
|
If |
|
no |
|
A set of extra dimensions (key-value pairs) to include on datapoints emitted by the monitor(s) created from this configuration. To specify metrics from this monitor should be high-resolution, add the dimension |
|
|
no |
|
A set of extra span tags (key-value pairs) to include on spans emitted by the monitor(s) created from this configuration. |
|
|
no |
|
A mapping of extra span tag names to a discovery rule expression that is used to derive the value of the span tag. For example, to use a certain container label as a span tag, use something similar to |
|
|
no |
|
A set of default span tags (key-value pairs) to include on spans emitted by the monitor(s) created from this configuration. |
|
|
no |
|
A mapping of default span tag names to a discovery rule expression that is used to derive the default value of the span tag. For example, to use a certain container label as a span tag, use something similar to |
|
|
no |
|
A mapping of extra dimension names to a discovery rule expression that is used to derive the value of the dimension. For example, to use a certain container label as a dimension, use something similar to |
|
|
no |
|
A set of mappings from a configuration option on this monitor to attributes of a discovered endpoint. The keys are the config option on this monitor and the value can be any valid expression used in discovery rules. |
|
|
|
no |
|
The interval (in seconds) at which to emit datapoints from the monitor(s) created by this configuration. If not set (or set to 0), the global agent intervalSeconds config option will be used instead. |
|
|
no |
|
If one or more configurations have this set to |
|
no |
|
A list of datapoint filters. These filters allow you to comprehensively define which datapoints to exclude by metric name or dimension set, as well as the ability to define overrides to re-include metrics excluded by previous patterns within the same filter item. |
|
|
|
no |
|
Some monitors pull metrics from services not running on the same host and should not get the host-specific dimensions set on them, for example |
|
|
no |
|
This can be set to true if you don’t want to include the dimensions that are specific to the endpoint that was discovered by an observer. This is useful when you have an endpoint whose identity is not particularly important since it acts largely as a proxy or adapter for other metrics. |
|
no |
|
A map from original metric name to a replacement value. The keys are intepreted as regular expressions and the values can contain backreferences, so escape any RE characters in the original metric name with |
|
|
no |
|
A map from dimension names emitted by the monitor to the desired dimension name that will be emitted in the datapoint that goes to Splunk Observability Cloud. This can be useful if you have custom metrics from your applications and want to make the dimensions from a monitor match those. Also can be useful when scraping free-form metrics. |
|
|
no |
|
Extra metrics to enable besides the default included ones. This is an overridable filter. |
|
|
no |
|
Extra metric groups to enable in addition to the metrics that are emitted by default. A metric group is simply a collection of metrics, and they are defined in each monitor’s documentation. |