title: Naming pattern in graphite and statsd
body: <p>Problem Description:
  I have module which does following thing. </p>
  
  <pre><code>delete/folder
  delete/file
  move/folder
  move/file
  </code></pre>
  
  <p>This application is running on multiple host. I am not able to find better namespace pattern for storing it in statsd:</p>
  
  <p>I have thought about following patterns:</p>
  
  <pre><code>&lt;env&gt;.&lt;app&gt;.&lt;action&gt;.&lt;object&gt;.&lt;host&gt;.exec_time
  &lt;env&gt;.&lt;app&gt;.&lt;action&gt;.&lt;object&gt;.&lt;host&gt;.failed
  &lt;env&gt;.&lt;app&gt;.&lt;action&gt;.&lt;object&gt;.&lt;host&gt;.succeeded
  </code></pre>
  
  <p>Second pattern I am thinking is:</p>
  
  <pre><code>&lt;env&gt;.&lt;app&gt;.&lt;object&gt;.&lt;action&gt;.&lt;host&gt;.exec_time
  &lt;env&gt;.&lt;app&gt;.&lt;object&gt;.&lt;action&gt;.&lt;host&gt;.failed
  &lt;env&gt;.&lt;app&gt;.&lt;object&gt;.&lt;action&gt;.&lt;host&gt;.succeeded
  </code></pre>
  
  <p>I can have some more pattern like this?</p>
  
  <pre><code>&lt;env&gt;.&lt;app&gt;.&lt;object&gt;.&lt;action&gt;.exec_time.&lt;host&gt;
  &lt;env&gt;.&lt;app&gt;.&lt;object&gt;.&lt;action&gt;.failed.&lt;host&gt;
  </code></pre>
  
  <p>I am not able to find which pattern will be good and why? Can you please suggest </p>
  
  <p>Currently I am thinking about following metrics.</p>
  
  <ol>
  <li>Global QOS </li>
  <li>Global action level QOS </li>
  <li>Global object level QOS</li>
  <li>Host QOS</li>
  <li>Host action level QOS</li>
  <li>Host object level QOS</li>
  </ol>