Builds can now emit metrics that Hydra will store in its database and render as time series via flot charts. Typical applications are to keep track of performance indicators, coverage percentages, artifact sizes, and so on. For example, a coverage build can emit the coverage percentage as follows: echo "lineCoverage $pct %" > $out/nix-support/hydra-metrics Graphs of all metrics for a job can be seen at http://.../job/<project>/<jobset>/<job>#tabs-charts Specific metrics are also visible at http://.../job/<project>/<jobset>/<job>/metric/<metric> The latter URL also allows getting the data in JSON format (e.g. via "curl -H 'Accept: application/json'").
8 lines
178 B
Plaintext
8 lines
178 B
Plaintext
[% WRAPPER layout.tt title="Job metric ‘$metricName’" %]
|
||
[% PROCESS common.tt %]
|
||
|
||
[% INCLUDE includeFlot %]
|
||
[% INCLUDE createChart id="chart" dataUrl=c.req.uri %]
|
||
|
||
[% END %]
|