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
|
import datetime
config = {
"statscache.datagrepper.profile": False,
# Consumer stuff
"statscache.consumer.enabled": False,
"statscache.sqlalchemy.uri": "postgres://statscache:{{statscache_db_password}}@db01/statscache",
# stats models will go back at least this far (current value arbitrary)
"statscache.consumer.epoch": datetime.datetime(year=2015, month=8, day=8),
# stats models are updated at this frequency
"statscache.producer.frequency": datetime.timedelta(seconds=1),
# Configuration of web API
"statscache.app.maximum_rows_per_page": 100,
"statscache.app.default_rows_per_page": 100,
# Turn on logging for statscache
"logging": dict(
loggers=dict(
statscache={
"level": "DEBUG",
"propagate": False,
"handlers": ["console"],
},
statscache_plugins={
"level": "DEBUG",
"propagate": False,
"handlers": ["console"],
},
),
),
}
|