How to add my api's metrics to sonarqube's

Hi guys I have a quick question about how I can add my api’s metrics to Sonarqube’s measurements for the graphs I have made locally.
I am building a plugin right now and have brought in the measurements. I have also made respective Metrics for each of these values and saving them on `context.module()’. I now need to add these Metrics to the graphs already made in my Sonarqube instance. I haven’t found any documentation on how to add this.
A separate question I have is what exactly is a module in Sonarqube? I tried to look up what kind of properties and lifecycle a ‘module’ has but failed to find anything up to date in the 7.9 LTS version.

Thanks so much for your help

Hi,

Could you clarify which graphics you’re talking about? On the measures page, a treemap should automatically be available for percentage metrics, and history graphs should be available for all metric types in the Activity page.

 
Ann

Hi Sorry after reading your response yesterday I realized I didn’t understand enough about the UI and yes I see that I can add in all of my Metrics which is awesome! My question about what is the module() life cycle and how it differs from saving onto a file is still there I have failed to find any docs about it. A quick summary of how it works would be great thanks.

Hi,

I don’t fully understand your new question, but it does seem to be a new question. As such it would really be better if you started a new thread (with an appropriate title) for it. At the same time, you’ll want to expand your question to provide as many details and as much context as possible to make it easy for other answerers to help you.

 
:slight_smile:
Ann