CodeQuality by Metrix++ 1:Codebase
Visualize code quality metrics LoC (Lines of Code), CC (Cyclomatic Complexity) and resulting CCD (Cyclomatic Complexity Density) collected for your codebase by Metrix++ in Prometheus
This dashboard allows you to visualize code quality metrics
- LoC (Lines of Code)
- CC (Cyclomatic Complexity)
- and the resulting CCD (Cyclomatic Complexity Density), as division of CD by LoC
(all 3 horizontally in successive columns) collected for your codebase (C/C++, C# and Java) by Metrix++ in Prometheus. For each metric, 3 graphs are rendered vertically showing successively:
- total absolute for the current selection (codebase)
- distribution of the total 1. over the next level items (folders)
- deviation over the time of the total 1. by next level items (folders)
It is part of a set of 3 dashboards, linked for the sake of drilldown analysis:
CodeQuality by Metrix++ 1:Overall is designed as first dashboard used during analysis, showing overall metrics at codebase level up to (scolling down to) the next level information about folders, with support for drilldown to the next linked CodeQuality by Metrix++ 2:Folder.
First it requires you to put Metrix++ in place for your codebase (C/C++, C# and Java), (see also its github repo), and to setup a Prometheus instance scraping the output of the following commands:
python metrix++.py view --ll=ERROR --format=prometheus
python metrix++.py view --ll=ERROR --format=prometheus -- /home/mycodebase
python metrix++.py view --ll=ERROR --format=prometheus -- /home/mycodebase/src
python metrix++.py view --ll=ERROR --format=prometheus -- /home/mycodebase/src/main
python metrix++.py view --ll=ERROR --format=prometheus -- /home/mycodebase/src/main/java
python metrix++.py view --ll=ERROR --format=prometheus -- /home/mycodebase/src/main/java/Foo.java
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
Revision | Description | Created | |
---|---|---|---|
Download |