title: How to create a custom metric using Sonar API
body: <p>I am creating a plugin for Sonar and I need to create a custom metric since there are no core metrics within Sonar API that fulfill my needs. </p>
  
  <p>I need to be able to display this metric on the dashboard.</p>
  
  <p>Any help is greatly appreciated!</p>