# Cusom Measures from outer source

**URL:** <https://community.sonarsource.com/t/cusom-measures-from-outer-source/14339>\
**Category:** Plugin Development\
**Created:** [September 16, 2019, 2:08pm UTC](https://community.sonarsource.com/t/cusom-measures-from-outer-source/14339 "2019-09-16T14:08:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex1980](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@alex1980](https://community.sonarsource.com/u/alex1980)\
**Post date:** [September 16, 2019, 2:08pm UTC](https://community.sonarsource.com/t/cusom-measures-from-outer-source/14339/1 "2019-09-16T14:08:59Z")

</div>

Hi!  
I have a json file with fan-in fan-out datas for the source files. I like to write a sonarqube plugin that can display on the measure tab of the project.  
I have a measure class with two Metric type (typesUseMe, typesUsingMe) and I have a relative simple MeasureComputer which only add Measure data to the context.  
My sensor reads the json and creates newMeasures from the filePath(json) and current module filesystem but after a successfull analysis I don’t see anything

---

<div class="post-metadata">

**Author:** ![julienlancelot](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/julienlancelot/32/68225_2.png) [@julienlancelot](https://community.sonarsource.com/u/julienlancelot)\
**Post date:** [September 16, 2019, 3:20pm UTC](https://community.sonarsource.com/t/cusom-measures-from-outer-source/14339/2 "2019-09-16T15:20:07Z")

</div>

Hi @alex1980 and welcome to this community forum !

In order to be sure that your new measure has been correctly computed, you should call the web service **api/measure/component?component=YOUR\_COMPONENT\_KEY&mextricKeys=YOUR\_METRIC\_KEYS**  
and check that you have something in the component/measures response field.

Regards,  
Julien Lancelot

---

<div class="post-metadata">

**Author:** ![alex1980](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@alex1980](https://community.sonarsource.com/u/alex1980)\
**Post date:** [September 17, 2019, 10:17am UTC](https://community.sonarsource.com/t/cusom-measures-from-outer-source/14339/3 "2019-09-17T10:17:11Z")

</div>

Thanks for the information I’ll try it. 🙂

---

<div class="post-metadata">

**Author:** ![alex1980](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@alex1980](https://community.sonarsource.com/u/alex1980)\
**Post date:** [September 19, 2019, 7:18am UTC](https://community.sonarsource.com/t/cusom-measures-from-outer-source/14339/4 "2019-09-19T07:18:56Z")

</div>

The problem was the output and input metric in the measurecomputer implementation. So I created an input metric and an output metric than the plugin started to work.
