mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-20 16:03:06 +01:00
Refactor Dashboard
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -276,20 +276,24 @@ grafanaconf:
|
||||
- template: jinja
|
||||
- source: salt://common/grafana/etc
|
||||
|
||||
{%- if grains['role'] == 'so-master' %}
|
||||
{% if salt['pillar.get']('mastertab', False) %}
|
||||
{%- for SN, SNDATA in salt['pillar.get']('mastertab', {}).iteritems() %}
|
||||
dashboard-master:
|
||||
file.managed:
|
||||
- name: /opt/so/conf/grafana/grafana_dashboards/master/{{ grains.host }}-Master.json
|
||||
- name: /opt/so/conf/grafana/grafana_dashboards/master/{{ SN }}-Master.json
|
||||
- user: 939
|
||||
- group: 939
|
||||
- template: jinja
|
||||
- source: salt://common/grafana/grafana_dashboards/master/sensor.json
|
||||
- source: salt://common/grafana/grafana_dashboards/master/master.json
|
||||
- defaults:
|
||||
SERVERNAME: {{ grains.host }}
|
||||
MANINT: ens33
|
||||
MONINT: ens33
|
||||
SERVERNAME: {{ SN }}
|
||||
MANINT: {{ SNDATA.manint }}
|
||||
CPUS: {{ SNDATA.totalcpus }}
|
||||
UID: {{ SNDATA.guid }}
|
||||
|
||||
{% endif %}
|
||||
{%- endfor %}
|
||||
|
||||
{% if salt['pillar.get']('sensorstab', False) %}
|
||||
{%- for SN, SNDATA in salt['pillar.get']('sensorstab', {}).iteritems() %}
|
||||
dashboard-{{ SN }}:
|
||||
@@ -303,6 +307,8 @@ dashboard-{{ SN }}:
|
||||
SERVERNAME: {{ SN }}
|
||||
MONINT: {{ SNDATA.monint }}
|
||||
MANINT: {{ SNDATA.manint }}
|
||||
CPUS: {{ SNDATA.totalcpus }}
|
||||
UID: {{ SNDATA.guid }}
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
@@ -319,6 +325,8 @@ dashboard-{{ SN }}:
|
||||
- defaults:
|
||||
SERVERNAME: {{ SN }}
|
||||
MANINT: {{ SNDATA.manint }}
|
||||
CPUS: {{ SNDATA.totalcpus }}
|
||||
UID: {{ SNDATA.guid }}
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user