The tag function extracts the value of a specific tag from a metric group.
tag ( group **, ** tag )
- group A group name.
- tag A tag identifier.
tag(system.cpu, host) # (1)
tag(com.groupon.requests, 'json endpoint') # (2)
- Extracts the
host
tag from the metric groupsystem.cpu
. - Extracts the
json endpoint
tag from the metric groupcom.groupon.requests
. The tag name was quoted, to allow the space to be encoded.