commit | c1e1fcb6f1dae5af91e8a060c20e9e555ca9fa50 | [log] [tgz] |
---|---|---|
author | Antonio Barone <syntonyze@gmail.com> | Tue Nov 20 12:34:05 2018 +0000 |
committer | Antonio Barone <syntonyze@gmail.com> | Tue Nov 20 15:42:35 2018 +0000 |
tree | 736e542b7785a65999a2df98d18b119bd888632d | |
parent | c48a06c3258a91eb10697e30ff930d21631e64a3 [diff] |
Always aggregate analytics data by hour Do not allow dashboard users to choose which type of aggregation to perform when running wizard: coarse-grained aggregation, such as month or year is not useful to be plotted on a time-based graph and it has been cause of confusion for users. Feature: Issue 10070 Change-Id: I6bb613f25fac4c1457865cd36cb3d843a4a854ca
Wizard to locally setup an Analytics Dashboard like the Gerrit's one. This will allow you to explore the potentials of DevOps Analytics on your own repositories.
##Installation
Copy the latest available jar into the Gerrit plugins directory and restart it. Assuming /usr/local/gerrit
is the location of your Gerrit installation simply execute the following:
curl -o /tmp/analytics-wizard.jar https://gerrit-ci.gerritforge.com/job/plugin-analytics-wizard-sbt-master-master/analytics-wizard.jar &&\ cp /tmp/analytics-wizard.jar /usr/local/gerrit/plugins
Once you are logged in Gerrit you can access the dashboard configuration via the top menu (Analytics Wizard > Configure Dashboard
).
You will land on this screen:
Different parameters can be configured:
gerrit/
. Note: It is not a regular expression.Once you set the parameters pressing the “Create Dashboard” button will trigger the Dashboard creation and the data import.
Beware this operation will take a while since it requires to download several Docker images and run an ETL job to collect and aggregate the data.
At the end of this operation you will be presented with a dashbaord similar to this one:
You can now navigate among the different charts and uncover the potentials of DevOps analytics!
To build the plugin, JDK 1.8 and sbt are required. Once installed use sbt to build:
cd ./analytics-wizard sbt assembly
This will compile, test and package the plugin artifact, which can be found in ./target/scala-2.11/analytics-wizard.jar
.
sysctl -w vm.max_map_count=262144
from command line, if you are using a Linux box and the dashboard creation fails with a similar error:max virtual memory areas vm.max_map_count [XXXXX] is too low, increase to at least [262144]