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

View File

@@ -321,7 +321,7 @@ dashboard-{{ SN }}:
- user: 939
- group: 939
- template: jinja
- source: salt://common/grafana/grafana_dashboards/sensor.json
- source: salt://common/grafana/grafana_dashboards/storage_nodes/storage.json
- defaults:
SERVERNAME: {{ SN }}
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\"]}}}}}"
# 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() %}
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 %}