monitoring/ffmap/config.py
Adrian Schmutzler 2a515b94c7 config/routertools: Set minimum distance for data in router stats
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>
2018-01-15 12:30:08 +01:00

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
}