Common Module - Fix Storage Node Dashboard

This commit is contained in:
Mike Reeves
2018-11-26 21:01:02 -05:00
parent 689df66267
commit f985b94594
3 changed files with 7 additions and 7 deletions

View File

@@ -1241,7 +1241,7 @@
}, },
{ {
"params": [ "params": [
" / 100" " / {{ CPUS }}"
], ],
"type": "math" "type": "math"
} }
@@ -1372,7 +1372,7 @@
}, },
{ {
"params": [ "params": [
" / 100" " / {{ CPUS }}"
], ],
"type": "math" "type": "math"
} }
@@ -1503,7 +1503,7 @@
}, },
{ {
"params": [ "params": [
" / 100" " / {{ CPUS }}"
], ],
"type": "math" "type": "math"
} }
@@ -2127,7 +2127,7 @@
}, },
{ {
"params": [ "params": [
" / 100" " / {{ CPUS }}"
], ],
"type": "math" "type": "math"
} }
@@ -3934,6 +3934,6 @@
}, },
"timezone": "browser", "timezone": "browser",
"title": "Forward Node - {{ SERVERNAME }} Overview", "title": "Forward Node - {{ SERVERNAME }} Overview",
"uid": "yMeBEqfmz", "uid": "{{ UID }}",
"version": 25 "version": 25
} }

View File

@@ -321,7 +321,7 @@ dashboard-{{ SN }}:
- user: 939 - user: 939
- group: 939 - group: 939
- template: jinja - template: jinja
- source: salt://common/grafana/grafana_dashboards/sensor.json - source: salt://common/grafana/grafana_dashboards/storage_nodes/storage.json
- defaults: - defaults:
SERVERNAME: {{ SN }} SERVERNAME: {{ SN }}
MANINT: {{ SNDATA.manint }} MANINT: {{ SNDATA.manint }}

View File

@@ -30,7 +30,7 @@ echo "Applying cross cluster search config..."
-d "{\"persistent\": {\"search\": {\"remote\": {\"{{ MASTER }}\": {\"seeds\": [\"127.0.0.1:9300\"]}}}}}" -d "{\"persistent\": {\"search\": {\"remote\": {\"{{ MASTER }}\": {\"seeds\": [\"127.0.0.1:9300\"]}}}}}"
# Add all the storage nodes to cross cluster searching. # Add all the storage nodes to cross cluster searching.
#{%- for SN, SNIP in salt['pillar.get']('nodestab', {}).iteritems() %}}
{%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).iteritems() %} {%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).iteritems() %}
curl -XPUT http://{{ ES }}:9200/_cluster/settings -H'Content-Type: application/json' -d '{"persistent": {"search": {"remote": {"{{ SN }}": {"skip_unavailable": "true", "seeds": ["{{ SNDATA.ip }}:9300"]}}}}}' curl -XPUT http://{{ ES }}:9200/_cluster/settings -H'Content-Type: application/json' -d '{"persistent": {"search": {"remote": {"{{ SN }}": {"skip_unavailable": "true", "seeds": ["{{ SNDATA.ip }}:9300"]}}}}}'
{%- endfor %} {%- endfor %}