Skip to content

ends

Input Stack:
value: String
key: String
Output Stack:
Query
 

Select time series where the value for a tag key ends with the specified suffix string. This provides a more efficient alternative to regular expressions when you only need simple suffix matching. It performs exact suffix matching and is case-sensitive.

Parameters

  • key: The tag key to check (e.g., name, nf.app)
  • value: The suffix string that tag values must end with

Examples

Find all metrics whose name ends with "User":

name,User,:ends

When matching against sample data, the highlighted time series would be included:

Namenf.appnf.node
ssCpuUser alerttest i-0123
ssCpuSystem alerttest i-0123
ssCpuUser nccp i-0abc
ssCpuSystem nccp i-0abc
numRequests nccp i-0abc
ssCpuUser api i-0456
  • :starts - Match by prefix instead of suffix
  • :contains - Match by substring anywhere in the value
  • :eq - Exact string matching
  • :re - Full regular expression matching (more powerful but slower)
  • :and / :or - Combine with other query conditions