| 1 |
modules { |
| 2 |
module { |
| 3 |
name = "multi_interface" |
| 4 |
language = "python" |
| 5 |
|
| 6 |
# Leaving the interfaces value empty will result in all interfaces being |
| 7 |
# used ie. anything you can see in /proc/net/dev. If you only want to |
| 8 |
# monitor specific ones change value to space delimited list of |
| 9 |
# network interfaces e.g. value = "eth0 eth1 bond0" |
| 10 |
param interfaces { |
| 11 |
value = "" |
| 12 |
} |
| 13 |
|
| 14 |
# If set to true interfaces that are indicated above will be summed |
| 15 |
# to produce bytes_out, bytes_in, pkts_out and pkts_in values |
| 16 |
# This may be useful in situations where you don't care about internal |
| 17 |
# interfaces ie. if machine is dual homed and really care about |
| 18 |
# traffic going only externally |
| 19 |
param send_aggregate_bytes_packets { |
| 20 |
value = False |
| 21 |
} |
| 22 |
|
| 23 |
# Alternatively leave the interfaces list at value = "" then exclude |
| 24 |
# specific interfaces by name or regular expression e.g. dummy, lo, eth[0-9]+ etc. |
| 25 |
param excluded_interfaces { |
| 26 |
value = "lo vnet[0-9]+" |
| 27 |
} |
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
collection_group { |
| 32 |
collect_every = 15 |
| 33 |
time_threshold = 45 |
| 34 |
|
| 35 |
metric { |
| 36 |
name_match = "rx_(.+)" |
| 37 |
value_threshold = 1.0 |
| 38 |
} |
| 39 |
metric { |
| 40 |
name_match = "tx_(.+)" |
| 41 |
value_threshold = 1.0 |
| 42 |
} |
| 43 |
|
| 44 |
# Uncomment only if param send_aggregate_bytes_packets set to True |
| 45 |
# metric { |
| 46 |
# name = "bytes_out" |
| 47 |
# value_threshold = 4096 |
| 48 |
# title = "Bytes Sent" |
| 49 |
# } |
| 50 |
# metric { |
| 51 |
# name = "bytes_in" |
| 52 |
# value_threshold = 4096 |
| 53 |
# title = "Bytes Received" |
| 54 |
# } |
| 55 |
# metric { |
| 56 |
# name = "pkts_in" |
| 57 |
# value_threshold = 256 |
| 58 |
# title = "Packets Received" |
| 59 |
# } |
| 60 |
# metric { |
| 61 |
# name = "pkts_out" |
| 62 |
# value_threshold = 256 |
| 63 |
# title = "Packets Sent" |
| 64 |
# } |
| 65 |
} |