Reference to the removeSeries() function

Summary

removeSeries(<expression> [, <metric>|source=<s>|tag=<st>|tagk=<pointTagKey>])

Filters the expression to display only the time series that do not match the specified metric, source, source tag, or point tag. No key is required to remove a metric. To filter by a particular source, source tag, or point tag, specify source=, tag=, or tagk=, respectively. You can specify only one filtering parameter per function call.

Parameters

ParameterDescription
expression Expression that you want to filter.
metric|source=|tag=|tagk= The metric, source, source tag, or point tag to filter by. See filter() Function for an in-depth discussion of source tags, point tags, and when to use them.

Description

The removeSeries() function filters the expression to display only the time series that do not match the specified metric, source, source tag, or point tag. To filter by a particular source, source tag, or point tag, specify source=, tag=, or tagk=, respectively. Set pointTagKey to the unique point tag key to filter by.

You can specify only one filtering parameter per function call. To filter by multiple parameters, use a removeSeries() call for each parameter.

Examples

The following example removes all series tagged with env=dev, so only those with env=production remain.

remove series