code: def match_metric(regex):
      '''
      Display the current values of all metrics whose names match the
      given regular expression.
  
      .. versionadded:: 2016.11.0
  
      .. code-block:: bash
  
          salt '*' trafficserver.match_metric regex
      '''
      if _TRAFFICCTL:
          cmd = _traffic_ctl('metric', 'match', regex)
      else:
          cmd = _traffic_ctl('-m', regex)
  
      return _subprocess(cmdf match_metric(regex):
      '''
      Display the current values of all metrics whose names match the
      given regular expression.
  
      .. versionadded:: 2016.11.0
  
      .. code-block:: bash
  
          salt '*' trafficserver.match_metric regex
      '''
      if _TRAFFICCTL:
          cmd = _traffic_ctl('metric', 'match', regex)
      else:
          cmd = _traffic_ctl('-m', regex)
  
      return _subprocess(cmd)
docs: Display the current values of all metrics whose names match the
      given regular expression.
  
      .. versionadded:: 2016.11.0
  
      .. code-block:: bash
  
          salt '*' trafficserver.match_metric regex