| 1 | [% if entry.metrics.scopes %] |
| 2 | ## Metrics |
| 3 | |
| 4 | [% if entry.metrics.folding.enabled and not clean %] |
| 5 | {% details open=true summary="[[ entry.metrics.folding.title ]]" %} |
| 6 | [% endif %] |
| 7 | Metrics grouped by *scope*. |
| 8 | |
| 9 | The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels. |
| 10 | |
| 11 | [[ entry.metrics.description ]] |
| 12 | |
| 13 | [% for scope in entry.metrics.scopes %] |
| 14 | ### Per [[ scope.name ]] |
| 15 | |
| 16 | [[ scope.description ]] |
| 17 | |
| 18 | [% if scope.labels %] |
| 19 | Labels: |
| 20 | |
| 21 | | Label | Description | |
| 22 | |:-----------|:----------------| |
| 23 | [% for label in scope.labels %] |
| 24 | | [[ strfy(label.name) ]] | [[ strfy(label.description) ]] | |
| 25 | [% endfor %] |
| 26 | [% else %] |
| 27 | This scope has no labels. |
| 28 | [% endif %] |
| 29 | |
| 30 | Metrics: |
| 31 | |
| 32 | | Metric | Dimensions | Unit |[% for a in entry.metrics.availability %] [[ a ]] |[% endfor %] |
| 33 | |
| 34 | |:------|:----------|:----|[% for a in entry.metrics.availability %]:---:|[% endfor %] |
| 35 | |
| 36 | [% for metric in scope.metrics %] |
| 37 | | [[ strfy(metric.name) ]] | [% for d in metric.dimensions %][[ strfy(d.name) ]][% if not loop.last %], [% endif %][% endfor %] | [[ strfy(metric.unit) ]] |[% for a in entry.metrics.availability %] [% if not metric.availability|length or a in metric.availability %]•[% else %] [% endif %] |[% endfor %] |
| 38 | |
| 39 | [% endfor %] |
| 40 | |
| 41 | [% endfor %] |
| 42 | [% if entry.metrics.folding.enabled and not clean %] |
| 43 | {% /details %} |
| 44 | [% endif %] |
| 45 | [% else %] |
| 46 | ## Metrics |
| 47 | |
| 48 | [[ entry.metrics.description ]] |
| 49 | [% endif %] |