<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Never mind. It seems to be working now. I don't know what went
      wrong earlier.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 7/24/2018 1:23 PM, Bernd Bausch
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:0363cc7f-6aa8-c23e-95f0-d411218044db@gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      I have been under the impression that a metric associates a name
      and a resource. For example, all resources of type <i>instance</i><u><i>
        </i></u>have a <i>cpu </i>metric. Perhaps I am wrong. Who can
      explain it to me or, better, point me to an explanation? <br>
      <br>
      I want to create time series of temperatures in various places.
      There are already three resources of type generic named tokyo,
      osaka and frankfurt. <br>
      <br>
      Next step, each resource needs a metric named <i>heat</i>. So I
      try:<br>
      <tt>gnocchi metric create --resource-id tokyo --archive-policy
        medium --unit celsius heat</tt><tt><br>
      </tt><tt>gnocchi metric create --resource-id osaka
        --archive-policy medium --unit celsius heat</tt><tt><br>
      </tt><tt>gnocchi metric create --resource-id frankfurt
        --archive-policy medium --unit celsius heat</tt><br>
      <br>
      The first command succeeds. The two others don't: <br>
      <tt>Named metric heat already exists (HTTP 409)</tt><br>
      <br>
      Checking:<br>
      <tt>gnocchi metric show --resource-id frankfurt heat</tt><tt><br>
      </tt><tt>Metric heat does not exist (HTTP 404)</tt><tt><br>
        <br>
      </tt>I also tried <br>
      <br>
      <tt>gnocchi metric create
        37e04566-bcfe-52b6-81e3-371bdf71c813/heat</tt> <br>
      <br>
      but that creates a metric named <i>37e04566-bcfe-52b6-81e3-371bdf71c813/heat</i>
      which is not associated with resource <i>37e04566-bcfe-52b6-81e3-371bdf71c813</i>.<tt><br>
      </tt><br>
      <b>What can I do to associate all three resources with metric </b><b><i>heat</i></b><b>?</b><br>
    </blockquote>
    <br>
  </body>
</html>