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.
How to customize metrics in sonar?
4.8k Views Asked by vinson At
2
There are 2 best solutions below
0
Steve Carter
On
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.
Related Questions in CUSTOMIZATION
- how to style mui 5 switch to look like a toggle switch
- Transposing labels on a continuous scale [waterfall graph, R]
- Innosetup: Optionally delete a file with checkbox
- Can Azure Functions encounter timeout exceptions?
- How to only modify one keyword color in Visual Studio Code?
- Customize menu in wordpress
- Remove grouping from numpunct of std::locale
- Customization to Last Week filter
- How do I let the user customize a specific portion of model in React Three Fiber?
- How to apply custom profiles/setting to Spinnaker to make it deploy with one command?
- Bash custom autocompletion triggered by key
- Difficulty Customizing Jira Templates: Seeking Solutions
- Customizing the Default Slack Message Input Window or APP window
- Customize user table used by Keycloak
- Is there Any way to show the toolbar columns menu by clicking on a customize Button outside the DataGrid in Material UI?
Related Questions in SONARQUBE
- Sonarqube not allowing me to set policy for S3 bucket
- Jacoco Coverage in Multi-Module Gradle Project Not Including Submodules
- How to solve sonarqube issue based on bug to return a copy
- Java Code Coverage with both Jacoco & SonarQube
- Sonar qube i installed is not working and it show "...... Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED"
- SonarLint vs code error of skipping files
- Sonar qube container cannot authenticate with token
- Is there a Sonar-Elixir plugin compatible with SonarQube 10.4.1?
- Error: LinkageError occurred while loading main class org.sonarsource.scanner.cli.Main
- SonarQube: False-Positive S100 - Method names should comply with a naming convention
- Sonarcloud - Sonar warning - Accept button - "Valid issue but won't be fixed now, it's acceptable for a while."
- What refactoring should I apply on this email validation regex?
- Flutter SonarQube: "The main branch has no lines of code."
- SonarScan not recognising python code at the source directory
- How is this passing the quality gate
Related Questions in METRIC
- how to get AUROC at 5% false positive
- KNeighborsClassifier change of distance
- Proving the edit distance between graphs with no edges is a metric
- "Distance" between data variable in PHP
- Keras predict gives different error than evaluate, loss different from metrics
- Keras metric produces unexpected values
- Custom Keras Metric throwing error
- Python: Drawing bisector between two points in L1 and L∞ metric
- Portfolio Performance Attribution Metrics
- Implementation of Jaccard Distance metric in nltk.metrics.distance not consistent with the mathematical definition?
- How do I get the number of running instances per docker swarm service as a prometheus metric?
- Keras - Loss and Metric calculated differently?
- Microstrategy selector metric
- Mean Average Precision for Multi-Label Multi-Class Data
- pheatmap default distance metric R
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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: