c34543f909
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
60 lines
2.0 KiB
Django/Jinja
60 lines
2.0 KiB
Django/Jinja
- title: {{log_panel.title}} Logs
|
|
collapse: true
|
|
height: 250px
|
|
showTitle: true
|
|
panels:
|
|
- title: {{log_panel.title}} Error Logs
|
|
type: graph
|
|
fill: 0
|
|
legend:
|
|
alignAsTable: true
|
|
avg: false
|
|
current: true
|
|
max: true
|
|
min: true
|
|
rightSide: true
|
|
show: true
|
|
total: false
|
|
values: true
|
|
nullPointMode: 'null'
|
|
targets:
|
|
{% for tail in log_panel.tail %}
|
|
- target: aliasByNode(consolidateBy(scale(aliasSub(aliasSub(aliasSub($Cloud.{{log_panel.node}}.tail-{{tail}}*.counter-*error, 'overcloud-', ''), 'tail-', ''), 'counter-', ''), 10), 'max'), 1, 2)
|
|
{% endfor %}
|
|
- title: {{log_panel.title}} Warn Logs
|
|
type: graph
|
|
fill: 0
|
|
legend:
|
|
alignAsTable: true
|
|
avg: false
|
|
current: true
|
|
max: true
|
|
min: true
|
|
rightSide: true
|
|
show: true
|
|
total: false
|
|
values: true
|
|
nullPointMode: 'null'
|
|
targets:
|
|
{% for tail in log_panel.tail %}
|
|
- target: aliasByNode(consolidateBy(scale(aliasSub(aliasSub(aliasSub($Cloud.{{log_panel.node}}.tail-{{tail}}*.counter-*warn, 'overcloud-', ''), 'tail-', ''), 'counter-', ''), 10), 'max'), 1, 2)
|
|
{% endfor %}
|
|
- title: {{log_panel.title}} Info Logs
|
|
type: graph
|
|
fill: 0
|
|
legend:
|
|
alignAsTable: true
|
|
avg: false
|
|
current: true
|
|
max: true
|
|
min: true
|
|
rightSide: true
|
|
show: true
|
|
total: false
|
|
values: true
|
|
nullPointMode: 'null'
|
|
targets:
|
|
{% for tail in log_panel.tail %}
|
|
- target: aliasByNode(consolidateBy(scale(aliasSub(aliasSub(aliasSub($Cloud.{{log_panel.node}}.tail-{{tail}}*.counter-*info, 'overcloud-', ''), 'tail-', ''), 'counter-', ''), 10), 'max'), 1, 2)
|
|
{% endfor %}
|