forked from netobserv/flowlogs-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
count_per_src_dest_subnet.yaml
47 lines (47 loc) · 1.09 KB
/
count_per_src_dest_subnet.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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