# Using custom metrics

**URL:** <https://community.sonarsource.com/t/using-custom-metrics/32604>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [October 8, 2020, 9:03am UTC](https://community.sonarsource.com/t/using-custom-metrics/32604 "2020-10-08T09:03:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bradox](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/bradox/32/15822_2.png) [@Bradox](https://community.sonarsource.com/u/Bradox)\
**Post date:** [October 8, 2020, 9:03am UTC](https://community.sonarsource.com/t/using-custom-metrics/32604/1 "2020-10-08T09:03:36Z")

</div>

Hello,  
I am new to sonarqube. We have a custom profiler that take some performance information about our code when running the tests. What we would like is to feed sonarqube with that information so it is displayed on the dashboard.  
I’ve read that a way to achieve this is using Custom Metrics. But apparently this is deprecated since 7.4. I was wondering what would be the best way to do it on newer versions of sonarqube. Would that be a custom plugin?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [October 8, 2020, 12:01pm UTC](https://community.sonarsource.com/t/using-custom-metrics/32604/2 "2020-10-08T12:01:43Z")

</div>

Hi,

Welcome to the community!

Yes, the best way to accomplish this would be with a custom plugin. In it you’ll

- define the metric(s)
- read the performance reports during analysis
- populate the latest measures (metric values) during analysis

Feel free to open new threads in the Plugin Development category with specific development questions.

&nbsp;  
HTH  
Ann

---

<div class="post-metadata">

**Author:** ![Bradox](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/bradox/32/15822_2.png) [@Bradox](https://community.sonarsource.com/u/Bradox)\
**Post date:** [October 8, 2020, 12:33pm UTC](https://community.sonarsource.com/t/using-custom-metrics/32604/3 "2020-10-08T12:33:50Z")

</div>

Thanks a lot. Are you aware of any examples I can use as a guideline.  
Regards

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [October 8, 2020, 2:14pm UTC](https://community.sonarsource.com/t/using-custom-metrics/32604/4 "2020-10-08T14:14:43Z")

</div>

Hi,

It looks like [this one](https://github.com/dependency-check/dependency-check-sonar-plugin) adds metrics.

&nbsp;  
HTH,  
Ann
