Skip to content

Commit

Permalink
Merge pull request #32 from criblio/reductions
Browse files Browse the repository at this point in the history
Route/Pipeline Reductions Dashboard
  • Loading branch information
DavidSheridan authored Oct 22, 2024
2 parents d98ae96 + 74586cf commit 67ad750
Show file tree
Hide file tree
Showing 7 changed files with 980 additions and 2 deletions.
Binary file modified criblvision.spl
Binary file not shown.
4 changes: 2 additions & 2 deletions criblvision/default/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[id]
name = criblvision
version = 4.0.0
version = 4.1.0

[install]
is_configured = false
Expand All @@ -17,7 +17,7 @@ setup_view = criblvision_setup_page
[launcher]
author = Johan Woger
description = The Splunk on Stream app provides insight into your Cribl Stream Environment based on Stream's internal logs and metrics. The dashboards included in this app will help you quickly identify and troubleshoot issue with your deployment.
version = 4.0.0
version = 4.1.0

[package]
id = criblvision
Expand Down
1 change: 1 addition & 0 deletions criblvision/default/data/ui/nav/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</collection>
<collection label="Configuration">
<view name="sources_and_destinations_overview" />
<view name="route_and_pipeline_reductions" />
<view name="splunk_destination_troubleshooting" />
</collection>
<collection label="Performance">
Expand Down
950 changes: 950 additions & 0 deletions criblvision/default/data/ui/views/route_and_pipeline_reductions.xml

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions criblvision/default/macros.conf
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ definition = lookup cribl_stream_assets environment AS $environment$ OUTPUTNEW h
| eval hosts = "\"".mvjoin(hosts, "\", \"")."\""
iseval = 0

[process_bytes(2)]
args = bytes_field,bytes_unit
definition = $bytes_field$ = $bytes_field$ / pow(1024, case(lower("$bytes_unit$") == "kb", 1, lower("$bytes_unit$") == "mb", 2, lower("$bytes_unit$") == "gb", 3, lower("$bytes_unit$") == "tb", 4, lower("$bytes_unit$") == "pb", 5, lower("$bytes_unit$") == "eb", 6, lower("$bytes_unit$") == "zb", 7, lower("$bytes_unit$") == "yb", 8, lower("$bytes_unit$") == "rb", 9, lower("$bytes_unit$") == "qb", 10, true(), 0))
iseval = 0
errormsg = The bytes unit "$bytes_unit$" is not valid
validation = match($bytes_unit$, "(?i)[KMGTPEZYRQ]?B")

[set_bytes_unit]
definition = "GB"
iseval = 0

### ALERT MACROS ###

# general macros used across alerts
Expand Down
4 changes: 4 additions & 0 deletions criblvision/default/transforms.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ batch_index_query = 0
case_sensitive_match = 1
filename = cribl_stream_assets.csv

[bytes_units]
batch_index_query = 0
case_sensitve_match = 0
filename = bytes_units.csv
12 changes: 12 additions & 0 deletions criblvision/lookups/bytes_units.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
abbreviated_unit,unit
B,Bytes
KB,Kilobytes
MB,Megabytes
GB,Gigabytes
TB,Terabytes
PB,Petabytes
EB,Exabytes
ZB,Zettabytes
YB,Yottabytes
RB,Ronnabytes
QB,Quettabytes

0 comments on commit 67ad750

Please sign in to comment.