code: public Metric getMetricAsync(String metricName) throws ExecutionException, InterruptedException {
      // [START getMetricAsync]
      Future<Metric> future = logging.getMetricAsync(metricName);
      // ...
      Metric metric = future.get();
      if (metric == null) {
        // metric was not found
      }
      // [END getMetricAsync]
      return metric;
    }
docs: [VARIABLE "my_metric_name"]