title: How retrieve metrics from pubsub outside Stackdriver
body: <p>I want to know how retrieve metrics pubsub from an API. (I saw this topic <a href="https://stackoverflow.com/questions/35475082/google-pubsub-counting-messages-in-topic">Google PubSub - Counting messages in topic</a>, but it's not the same problem).</p>
  
  <p>When I attempt to retrieve them from Logging API, but it returns a 404 error. </p>
  
  <p>It's not possible or it just lacks rights ?</p>
  
  <p><code>Client error: `GET https://logging.googleapis.com/v2/projects/my-project/metrics/pubsub.googleapis.com/topic/send_message_operation_count` resulted in a `404 Not Found`
  </code></p>
  
  <p>Thanks for your time !</p>