Merge pull request #7033 from Security-Onion-Solutions/receiver_grafana

Receiver grafana
This commit is contained in:
Josh Patterson
2022-01-31 08:41:56 -05:00
committed by GitHub
3 changed files with 320 additions and 4 deletions

View File

@@ -2731,6 +2731,319 @@ grafana:
w: 24
receiver:
templating:
list:
servername: {}
role:
allValue: false
multi: false
hide: 2
containers: {}
manint: {}
monint: {}
cpucount: {}
disk: {}
panels:
row_overview:
gridPos:
x: 0
y: 0
h: 1
w: 24
system_uptime:
gridPos:
x: 0
y: 1
h: 4
w: 4
load_average_5_minute_stat:
gridPos:
x: 4
y: 1
h: 4
w: 4
cpu_usage_guage:
gridPos:
x: 8
y: 1
h: 4
w: 2
ram_usage_guage:
gridPos:
x: 10
y: 1
h: 4
w: 2
swap_usage_guage:
gridPos:
x: 12
y: 1
h: 4
w: 2
rootfs_used_guage:
gridPos:
x: 14
y: 1
h: 4
w: 2
nsm_used_guage:
gridPos:
x: 16
y: 1
h: 4
w: 2
io_wait_stat:
gridPos:
x: 20
y: 1
h: 4
w: 4
logstash_estimated_eps_in_stat:
gridPos:
x: 0
y: 5
h: 4
w: 4
logstash_estimated_eps_out_stat:
gridPos:
x: 4
y: 5
h: 4
w: 4
redis_queue_stat:
gridPos:
x: 8
y: 5
h: 4
w: 4
row_cpu:
gridPos:
x: 0
y: 9
h: 1
w: 24
cpu_usage_tasks_all_graph:
gridPos:
x: 0
y: 10
h: 8
w: 24
load_averages_graph:
gridPos:
x: 0
y: 18
h: 8
w: 12
process_status_graph:
gridPos:
x: 12
y: 18
h: 8
w: 12
row_memory:
gridPos:
x: 0
y: 26
h: 1
w: 24
memory_usage_graph:
gridPos:
x: 0
y: 27
h: 8
w: 24
row_swap:
gridPos:
x: 0
y: 35
h: 1
w: 24
swap_io_bytes_graph:
gridPos:
x: 0
y: 36
h: 8
w: 12
swap_usage_bytes_graph:
gridPos:
x: 12
y: 36
h: 8
w: 12
row_network:
gridPos:
x: 0
y: 44
h: 1
w: 24
management_interface_traffic_both_graph:
gridPos:
x: 0
y: 45
h: 8
w: 24
management_interface_packets_graph:
gridPos:
x: 0
y: 53
h: 8
w: 12
management_interface_drops_graph:
gridPos:
x: 12
y: 53
h: 8
w: 12
row_disk_usage:
gridPos:
x: 0
y: 77
h: 1
w: 24
disk_usage_root_graph:
gridPos:
x: 0
y: 78
h: 8
w: 12
disk_usage_nsm_graph:
gridPos:
x: 12
y: 78
h: 8
w: 12
row_disk_iops:
gridPos:
x: 0
y: 86
h: 1
w: 24
disk_io_requests_graph:
gridPos:
x: 0
y: 87
h: 8
w: 8
disk_io_bytes_graph:
gridPos:
x: 8
y: 87
h: 8
w: 8
disk_io_time_graph:
gridPos:
x: 16
y: 87
h: 8
w: 8
row_docker_details:
gridPos:
x: 0
y: 95
h: 1
w: 24
cpu_docker_combined_current_graph:
gridPos:
x: 0
y: 96
h: 8
w: 24
cpu_docker_combined_trend_graph:
gridPos:
x: 0
y: 104
h: 8
w: 24
memory_used_docker_combined_current_graph:
gridPos:
x: 0
y: 112
h: 8
w: 24
memory_used_docker_combined_trend_graph:
gridPos:
x: 0
y: 120
h: 8
w: 24
network_usage_docker_combined_current_graph:
gridPos:
x: 0
y: 128
h: 8
w: 24
network_usage_docker_combined_trend_graph:
gridPos:
x: 0
y: 136
h: 8
w: 24
uptime_docker_combined_current_graph:
gridPos:
x: 0
y: 144
h: 8
w: 12
uptime_docker_combined_trend_graph:
gridPos:
x: 12
y: 144
h: 8
w: 12
row_logstash:
gridPos:
x: 0
y: 152
h: 1
w: 24
logstash_estimated_eps_in_graph:
gridPos:
x: 0
y: 153
h: 8
w: 24
logstash_estimated_eps_in_total_graph:
gridPos:
x: 0
y: 161
h: 8
w: 24
logstash_estimated_eps_out_graph:
gridPos:
x: 0
y: 169
h: 8
w: 24
logstash_estimated_eps_out_total_graph:
gridPos:
x: 0
y: 172
h: 8
w: 24
row_redis:
gridPos:
x: 0
y: 180
h: 1
w: 24
redis_queue_graph:
gridPos:
x: 0
y: 181
h: 8
w: 24
pipeline_overview_nontc:
title: 'Pipeline Overview'
templating:

View File

@@ -12,7 +12,7 @@
{% if grains['role'] in ['so-manager', 'so-managersearch', 'so-standalone'] or (grains.role == 'so-eval' and GRAFANA == 1) %}
{% set ALLOWED_DASHBOARDS = ['overview', 'standalone', 'manager', 'managersearch', 'sensor', 'searchnode', 'heavynode', 'eval'] %}
{% set ALLOWED_DASHBOARDS = ['overview', 'standalone', 'manager', 'managersearch', 'sensor', 'searchnode', 'heavynode', 'eval', 'receiver'] %}
{% set DASHBOARDS = ['overview'] %}
{% if grains.role == 'so-eval' %}
{% do DASHBOARDS.append('eval') %}

View File

@@ -677,7 +677,7 @@
# ## Use TLS but skip chain & host verification
# # insecure_skip_verify = false
{% if grains.role in ['so-node','so-standalone','so-manager', 'so-managersearch', 'so-heavynode'] -%}
{% if grains.role in ['so-node','so-standalone','so-manager', 'so-managersearch', 'so-heavynode', 'so-receiver'] -%}
[[inputs.logstash]]
url = "http://localhost:9600"
collect = ["pipelines"]
@@ -687,7 +687,7 @@
{%- endif %}
{%- endif %}
{# if grains.role in ['so-eval','so-standalone','so-manager', 'so-managersearch', 'so-heavynode'] -%}
{# if grains.role in ['so-eval','so-standalone','so-manager', 'so-managersearch', 'so-heavynode', 'so-receiver'] -%}
[[inputs.redis]]
servers = ["tcp://localhost:6379"]
{%- endif #}
@@ -735,11 +735,14 @@
data_format = "influx"
## Timeout for each command to complete.
timeout = "15s"
{% elif grains['role'] in ['so-node'] %}
{% elif grains['role'] in ['so-node', 'so-receiver'] %}
[[inputs.exec]]
commands = [
"/scripts/eps.sh",
"/scripts/raid.sh",
{% if grains.role == 'so-receiver' %}
"/scripts/redis.sh",
{% endif %}
"/scripts/beatseps.sh"
]
data_format = "influx"