Reference to the removeSeries() function

Summary

removeSeries(<tsExpression>, <filter1> [and|or [not] <filter2>] ... )

where <filterN> is:
    <metricName> | source="<sourceName>" | tag="<sourceTagName>" | <pointTagKey>="<pointTagValue>"

Filters the expression to display only the time series that do not match one or more filters, which might be any combination of metric names, source names, source tags, or point tags.

Parameters

ParameterDescription
tsExpression Expression that describes the time series that you want to filter.
<metricName>|source=|tag=|<pointTagKey>= A metric, source, source tag, or point tag to filter by. You must specify at least one filter, which can be of any type. Use Boolean operators to combine multiple filters. For example,
(source=app-1 or source=app-2) and env=dev.

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, or combination of these filters. To filter the expression to display only the time series that match one or more filters, use retainSeries().

Examples

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

remove series