comma control

This commit is contained in:
m0duspwnens
2021-07-06 11:06:35 -04:00
parent 98505a9a3f
commit a5067718d2
5 changed files with 16 additions and 15 deletions

View File

@@ -22,9 +22,10 @@
"panels": [ "panels": [
{% for panel in PANELS -%} {% for panel in PANELS -%}
{%- import_json "grafana/panels/" ~ panel ~ ".json" as panel %} {%- import_json "grafana/panels/" ~ panel ~ ".json.jinja" as panel %}
{{ panel }}, {{ panel | json }} {%- if not loop.last %},{% endif %}
{%- endfor %}
{% endfor -%}
], ],
"refresh": "30s", "refresh": "30s",
@@ -146,7 +147,7 @@
] ]
}, },
"timezone": "browser", "timezone": "browser",
"title": "Standalone Mode - {{ SERVERNAME }} Overview", "title": "Standalone - {{ SERVERNAME }} Overview",
"uid": "{{ UID }}", "uid": "{{ UID }}",
"version": 17 "version": 17
} }

View File

@@ -35,10 +35,10 @@ grafana:
w: 20 w: 20
x: 0 x: 0
y: 0 y: 0
# cpu_usage_tasks: {} cpu_usage_tasks: {}
# disk_io: {} disk_io: {}
# disk_used_root: {} disk_used_root: {}
# disk_used_nsm: {} disk_used_nsm: {}
# elasticsearch_cpu_usage: {} elasticsearch_cpu_usage: {}
# elasticsearch_documents_count: {} elasticsearch_documents_count: {}
# elasticsearch_field_data_cache_size: {} elasticsearch_field_data_cache_size: {}

View File

@@ -119,7 +119,7 @@ grafana-config-files:
{% for SN, SNDATA in salt['pillar.get']('standalonetab', {}).items() %} {% for SN, SNDATA in salt['pillar.get']('standalonetab', {}).items() %}
{% set NODETYPE = SN.split('_')|last %} {% set NODETYPE = SN.split('_')|last %}
{% set SN = SN | regex_replace('_' ~ NODETYPE, '') %} {% set SN = SN | regex_replace('_' ~ NODETYPE, '') %}
common--standalone-dashboard: common-standalone-dashboard:
file.managed: file.managed:
- name: /opt/so/conf/grafana/grafana_dashboards/standalone/common_standalone.json - name: /opt/so/conf/grafana/grafana_dashboards/standalone/common_standalone.json
- user: 939 - user: 939

View File

@@ -101,7 +101,7 @@
{ {
"key": "host", "key": "host",
"operator": "=", "operator": "=",
"value": " SERVERNAME " "value": "{{ SERVERNAME }}"
}, },
{ {
"condition": "AND", "condition": "AND",
@@ -158,7 +158,7 @@
{ {
"key": "host", "key": "host",
"operator": "=", "operator": "=",
"value": " SERVERNAME " "value": "{{ SERVERNAME }}"
}, },
{ {
"condition": "AND", "condition": "AND",
@@ -173,7 +173,7 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": " SERVERNAME - CPU", "title": "{{ SERVERNAME }} - CPU",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 0,