mirror of
https://github.com/FreifunkFranken/fff-monitoring.git
synced 2024-06-18 05:13:58 +02:00
This implement to different minimum distances in seconds for the router stats in general and the netif stats in particular. The values are chosen so that they are 30 secs. shorter than the desired timespans of 5 and 10 minutes, to allow for fluctuation in when data arrives. This fixes the data density increase caused by V2 Hoods with two gateways. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
19 lines
1.2 KiB
Python
19 lines
1.2 KiB
Python
#!/usr/bin/python3
|
|
|
|
CONFIG = {
|
|
"vpn_netif": "fffVPN", # Name of VPN interface
|
|
"vpn_netif_l2tp": "l2tp", # Beginning of names of L2TP interfaces
|
|
"vpn_netif_aux": "fffauxVPN", # Name of AUX interface
|
|
"offline_threshold_minutes": 15, # Router switches to offline after X minutes
|
|
"orphan_threshold_days": 7, # Router switches to orphaned state after X days
|
|
"delete_threshold_days": 180, # Router is deleted after X days
|
|
"router_stat_days": 30, # Router stats are collected for X days (if online)
|
|
"router_stat_mindiff_secs": 10, # Time difference (uptime) in seconds required for a new entry in router stats
|
|
"router_stat_mindiff_default": 270, # Time difference (router stats tables) in seconds required for a new entry in router stats
|
|
"router_stat_mindiff_netif": 570, # Time difference (router netif stats) in seconds required for a new entry in router stats
|
|
"event_num_entries": 30, # Number of events stored per router
|
|
"global_stat_days": 365, # Global/hood stats are collected for X days
|
|
"csv_dir": "/var/lib/ffmap/csv", # Directory where the .csv files for TileStache/mapnik are stored
|
|
"debug_dir": "/data/fff", # Output directory for debug .txt files
|
|
}
|