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": [
|
"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
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -276,20 +276,24 @@ grafanaconf:
|
|||||||
- template: jinja
|
- template: jinja
|
||||||
- source: salt://common/grafana/etc
|
- 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:
|
dashboard-master:
|
||||||
file.managed:
|
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
|
- user: 939
|
||||||
- group: 939
|
- group: 939
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- source: salt://common/grafana/grafana_dashboards/master/sensor.json
|
- source: salt://common/grafana/grafana_dashboards/master/master.json
|
||||||
- defaults:
|
- defaults:
|
||||||
SERVERNAME: {{ grains.host }}
|
SERVERNAME: {{ SN }}
|
||||||
MANINT: ens33
|
MANINT: {{ SNDATA.manint }}
|
||||||
MONINT: ens33
|
CPUS: {{ SNDATA.totalcpus }}
|
||||||
|
UID: {{ SNDATA.guid }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{%- endfor %}
|
||||||
|
|
||||||
{% if salt['pillar.get']('sensorstab', False) %}
|
{% if salt['pillar.get']('sensorstab', False) %}
|
||||||
{%- for SN, SNDATA in salt['pillar.get']('sensorstab', {}).iteritems() %}
|
{%- for SN, SNDATA in salt['pillar.get']('sensorstab', {}).iteritems() %}
|
||||||
dashboard-{{ SN }}:
|
dashboard-{{ SN }}:
|
||||||
@@ -303,6 +307,8 @@ dashboard-{{ SN }}:
|
|||||||
SERVERNAME: {{ SN }}
|
SERVERNAME: {{ SN }}
|
||||||
MONINT: {{ SNDATA.monint }}
|
MONINT: {{ SNDATA.monint }}
|
||||||
MANINT: {{ SNDATA.manint }}
|
MANINT: {{ SNDATA.manint }}
|
||||||
|
CPUS: {{ SNDATA.totalcpus }}
|
||||||
|
UID: {{ SNDATA.guid }}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -319,6 +325,8 @@ dashboard-{{ SN }}:
|
|||||||
- defaults:
|
- defaults:
|
||||||
SERVERNAME: {{ SN }}
|
SERVERNAME: {{ SN }}
|
||||||
MANINT: {{ SNDATA.manint }}
|
MANINT: {{ SNDATA.manint }}
|
||||||
|
CPUS: {{ SNDATA.totalcpus }}
|
||||||
|
UID: {{ SNDATA.guid }}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user