vinson
vinson

Reputation: 1

How to customize metrics in sonar?

I'm a new user of sonar. Now I need to customize metrics, but I didn't find the related documentation. If I have to coding a plugin? I do the same with http://docs.sonarqube.org/display/SONAR/Getting+Started, but I failed. There is no difference at the localhost:9000/profiles.

Upvotes: 0

Views: 4920

Answers (2)

Mark O'Connor
Mark O'Connor

Reputation: 77971

For proper integration into the Sonar build you need to write plugin:

If you just want to add some additional adhoc metrics to your dashboard, an option is to use manual measures:

There's a REST API available to creating and posting manual metric values:

Upvotes: 3

Steve Carter
Steve Carter

Reputation: 505

You can create a new Metric using Manual Metrics through the sonar GUI (I think you need admin rights). Manual metrics can be updated through the GUI too.

If your plugin built OK but there are no numbers appearing: you must also run an analysis to populate the new Metrics with some Measures.

Upvotes: 0

Related Questions