SWISnap works based on tasks. Tasks are the manifests for work to be done by the plugins and are required by SWISnap to actually start collecting data. For example, a task defines that apache plugin will be collecting metrics and those metrics will be sent to AppOptics by AppOptics publisher. Tasks can be written using YAML (default) or JSON syntax. Two types of tasks are supported:
- legacy tasks that are used for plugins compatible with V1 plugins API
- new tasks that are used for plugins compatible with V2 plugins API
The schedule defines how often and for how long tasks should be processed. SWISnap supports four types of schedules.
It allows defining intervals in which data should be collected. By default, such schedule runs forever, but by setting
count user can specify number of executions.
# count: 1
Very similar as a
simple schedule, but supports cron like syntax in
interval setting. It does not allow to specify
interval: "0 * * * * *"
It allows to define start/stop time, interval and count for executing task.
By not specifying
count, the task will be executed until time window will end.
By not specifying
start_timestamp, the task will start immediately.
By not specifying
stop_timestamp, the task will run forever if
count was also not specified.
It is dedicated for streaming plugins. Such plugins report data immediately after it's available, not using any predefined schedule.
version setting in task specifies which task structure is used.
schedule section is common for tasks version 1 and 2.
New task format allows to easily define everything what is needed to execute a task. It includes schedule, list of collectors and publishers with their configurations, list of metrics and tags:
## Version specifies task file structure.
## Optional parameters
# name: "my system task"
# deadline: "55s"
# start: true
# max-failures: -1
# max-collect-duration: "10s"
# max-metrics-buffer: 0
## Schedule describes type and interval for running the task.
## List of plugins to be used for this task.
## Each entry needs to specify collector and publisher plugin.
- plugin_name: system
# binary_name: snap-plugin-collector-aosystem
# plugin_version: "1.0.0"
## Plugin configuration needed to execute task.
## List of metrics requested for collection.
## Tags that will be added to collected metrics.
## List of publishers which will be sending out metrics from collector.
- plugin_name: publisher-appoptics
# binary_name: snap-plugin-publisher-appoptics
# plugin_version: "2.0.0"
## Publisher configuration needed to execute task.
- plugin_name: processes
# List of metrics requested for collection.
- plugin_name: publisher-processes
versionspecifies version of task syntax.
namespecifies custom name for a task visible. For example, in
swisnap task listcommand output. It is optional setting and SWISnap will generate task name based on file name.
deadlinespecifies in what time whole task collect operations should be completed. By default it is set to 55s.
startspecifies if task should be started on loading. Used when loading with SWISnap REST API. With autoload always true.
max-failuresspecifies number of max collect failures after which task will be disabled. By default set to -1.
max-collect-durationspecifies time required for collect operations to finish. It needs to be smaller or equal to deadline. By default set to 10s.
- max-metrics-buffer specifies if plugin should wait until buffer is filled with number of metrics before sending. Used when
streamingschedule is selected. Default is 0, send immediately.
schedulesection specifies how task shuld be run.
pluginssection lists collectors/publishers that will be requested to collect/send data.
plugin_namespecifies name of plugin. This setting is mandatory.
binary_namespecifies the plugin binary that needs to bin in SWISnap
binfolder. If not specified, SWISnap will detect the binary based on
plugin_namesetting, where for collectors it will be
snap-plugin-collector-<plugin_name>and for publishers it will be
plugin_versionspecifies version of plugin that needs to be used. If not specified, latest version of plugin will be used.
configsection contains configuration specific for a given plugin. Comparing to legacy task files, full YAML/JSON configuration syntax is supported. This configuration will be merged with plugin configuration template. We use this feature especially for plugins that are commonly used with the same configuration, like
publisher-appoptics, where in configuration template
metricssection contains a list of metrics that should be collected. If not specified, collector will return all metrics that it reports. Refer to metrics format for more details.
tagssection specifies additional tags that will be set for each collected metrics. If not specified, no additional tags will be added.
publishsection contains a list of publisher plugins used for sending out data. Similar settings as for collectors are available. Usually, publisher configuration is specified in plugin configuration template.
For detailed description of task format, please refer to Snap Telemetry Framework Documentation.
When the APM Integrated Experience is enabled, AppOptics shares a common navigation and enhanced feature set with the other integrated experiences' products. How you navigate AppOptics and access its features may vary from these instructions. For more information, go to the APM Integrated Experience documentation.
The scripts are not supported under any SolarWinds support program or service. The scripts are provided AS IS without warranty of any kind. SolarWinds further disclaims all warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The risk arising out of the use or performance of the scripts and documentation stays with you. In no event shall SolarWinds or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the scripts or documentation.