forked from netobserv/flowlogs-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request netobserv#36 from KalmanMeth/src-dst-subnet-aggregate
added network metric definitions for src and dest subnet aggregates
- Loading branch information
Showing
5 changed files
with
193 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#fl2m_confgen | ||
description: | ||
This metric observes the network bandwidth per source and destination subnets | ||
details: | ||
Sum bandwidth bytes for all traffic per source / destination subnet pair | ||
usage: | ||
Evaluate network usage breakdown per source / destination subnet pair | ||
labels: | ||
- bandwidth | ||
- graph | ||
- rate | ||
- subnet | ||
transform: | ||
rules: | ||
- input: dstIP | ||
output: dstSubnet24 | ||
type: add_subnet | ||
parameters: /24 | ||
- input: srcIP | ||
output: srcSubnet24 | ||
type: add_subnet | ||
parameters: /24 | ||
extract: | ||
aggregates: | ||
- name: bandwidth_source_destination_subnet | ||
by: | ||
- dstSubnet24 | ||
- srcSubnet24 | ||
operation: sum | ||
RecordKey: bytes | ||
encode: | ||
type: prom | ||
prom: | ||
metrics: | ||
- name: bandwidth_per_source_destination_subnet | ||
type: gauge | ||
valuekey: bandwidth_source_destination_subnet_value | ||
labels: | ||
- by | ||
- aggregate | ||
visualization: | ||
type: grafana | ||
grafana: | ||
- expr: 'topk(10,rate(fl2m_bandwidth_per_source_destination_subnet[1m]))' | ||
type: graphPanel | ||
dashboard: details | ||
title: | ||
Bandwidth per src and destination subnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#fl2m_confgen | ||
description: | ||
This metric counts the number of distinct source / destination subnet pairs | ||
details: | ||
Count the number of distinct source / destination subnet pairs | ||
usage: | ||
Evaluate network usage breakdown per source / destination subnet pair | ||
labels: | ||
- count | ||
- graph | ||
- rate | ||
- subnet | ||
transform: | ||
rules: | ||
- input: dstIP | ||
output: dstSubnet24 | ||
type: add_subnet | ||
parameters: /24 | ||
- input: srcIP | ||
output: srcSubnet24 | ||
type: add_subnet | ||
parameters: /24 | ||
extract: | ||
aggregates: | ||
- name: count_source_destination_subnet | ||
by: | ||
- dstSubnet24 | ||
- srcSubnet24 | ||
operation: count | ||
encode: | ||
type: prom | ||
prom: | ||
metrics: | ||
- name: count_per_source_destination_subnet | ||
type: gauge | ||
valuekey: count_source_destination_subnet_value | ||
labels: | ||
- by | ||
- aggregate | ||
visualization: | ||
type: grafana | ||
grafana: | ||
- expr: 'topk(10,rate(fl2m_count_per_source_destination_subnet[1m]))' | ||
type: graphPanel | ||
dashboard: details | ||
title: | ||
Connections rate of src / destination subnet occurences |