browbeat/ansible/install/roles/grafana-dashboards/templates/partials/per_process_rows.yaml.j2
akrzos c34543f909 Transition to GrafYaml for Dashboard Storage
Reasons to move from json, json.j2 to yaml/yaml.j2 + GrafYaml:
* Yaml is less lines
* Yaml allows comments
* Yaml means less curly braces and quotes
* GrafYaml manages panel ids and target refIds
* GrafYaml defaults reduce number of lines stored
* GrafYaml allows more easily cut/paste management of Dashboards

Identified Downsides:
* GrafYaml will be behind the Grafana Dashboard Model (Until code is updated)
* Json will always allow full feature set
* Installing Dashboards now requires GrafYaml

New Dashboards/Features:
* Templated Dashboards (Reduce line count in "static" dashboards)
* Cloud Specific networks - all dashboard
* Three Node Performance Food groups Enhanced
* Networker Node added for Cloud Specific Dashboards and Total Memory

Change-Id: I55ce9f9f6c28497c8b4ed7a19d42657a8eb14170
2018-02-27 10:20:18 -05:00

38 lines
1.3 KiB
Django/Jinja

#jinja2:lstrip_blocks: True
{% for metrics in per_process_metrics %}
- title: {{per_process_row_title_prefix}} {{metrics.name}}
collapse: true
height: 200px
showTitle: true
panels:
{% for panel in per_process_panels[item.process_list_name] %}
- title: {{panel.name}}
type: graph
fill: 0
legend:
alignAsTable: true
avg: false
current: true
max: true
min: true
rightSide: true
show: true
total: false
values: true
nullPointMode: '{{metrics.nullPointMode}}'
targets:
{% for process in panel.processes %}
{% for metric in metrics.metrics %}
{% if metrics.name|match('Process CPU') %}
- target: alias(scale($Cloud.$Node.processes-{{process|replace('.', '_')|replace(':', '_')}}{{metric.query}}, 0.0001), '{{process}} {{metric.name}}')
{% else %}
- target: alias($Cloud.$Node.processes-{{process|replace('.', '_')|replace(':', '_')}}{{metric.query}}, '{{process}} {{metric.name}}')
{% endif %}
{% endfor %}
{% endfor %}
yaxes:
- format: {{metrics.y1units}}
- format: short
{% endfor %}
{% endfor %}