Documentation forAppOptics

Function: filter(set[], options)

Given an arbitrary number of series, allows you to limit or exclude metric streams based on the values the streams contain. The filter function takes a series, a set of bounds, and an aggregate function. It applies the function to each stream and only returns streams whose result falls within the bounds provided.

  • gt - Greater than
  • lt - Less than
  • gte - Greater than or equals
  • lte - Less than or equals
  • function - Aggregate function applied to each metric stream. Must be one of
  • min, max, sum, or mean. Defaults to mean.

Example:

The following expression will return all streams for ELB instances whose average latency peaked above 0.025 seconds within the last hour (or whatever duration is selected):

Copy
filter(
  s("AWS.ApplicationELB.TargetResponseTime",
    {"name": "*"},
    {period: "60"}),
    {gt:"0.025",function:"max"}
)

The ELB instances whose average latency never went above 0.025 seconds are not rendered on the chart:

composite-filter-max

To only show ELB instances where the mean latency never dropped below 0.025 seconds during the last hour use function:"min":

Copy
filter(
  s("AWS.ApplicationELB.TargetResponseTime",
    {"name": "*"},
    {function:"mean"}),
    {gt:"0.025",function:"min"}
)

composite-filter-min

When the APM Integrated Experience is enabled, AppOptics shares a common navigation and settings 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.