Revision bd16bf3e snf-cyclades-app/synnefo/app_settings/default/api.py
b/snf-cyclades-app/synnefo/app_settings/default/api.py | ||
---|---|---|
84 | 84 |
BACKEND_PER_USER = {} |
85 | 85 |
|
86 | 86 |
|
87 |
# Encryption key for the instance hostname in the stat graphs URLs. Set it to |
|
88 |
# a random string and update the STATS_SECRET_KEY setting in the snf-stats-app |
|
89 |
# host (20-snf-stats-app-settings.conf) accordingly. |
|
90 |
CYCLADES_STATS_SECRET_KEY = "secret_key" |
|
91 |
|
|
87 | 92 |
# URL templates for the stat graphs. |
88 | 93 |
# The API implementation replaces '%s' with the encrypted backend id. |
89 |
# FIXME: For now we do not encrypt the backend id. |
|
90 |
CPU_BAR_GRAPH_URL = 'http://stats.synnefo.org/%s/cpu-bar.png' |
|
91 |
CPU_TIMESERIES_GRAPH_URL = 'http://stats.synnefo.org/%s/cpu-ts.png' |
|
92 |
NET_BAR_GRAPH_URL = 'http://stats.synnefo.org/%s/net-bar.png' |
|
93 |
NET_TIMESERIES_GRAPH_URL = 'http://stats.synnefo.org/%s/net-ts.png' |
|
94 |
CPU_BAR_GRAPH_URL = 'http://stats.example.synnefo.org/stats/v1.0/cpu-bar/%s' |
|
95 |
CPU_TIMESERIES_GRAPH_URL = 'http://stats.example.synnefo.org/stats/v1.0/cpu-ts/%s' |
|
96 |
NET_BAR_GRAPH_URL = 'http://stats.example.synnefo.org/stats/v1.0/net-bar/%s' |
|
97 |
NET_TIMESERIES_GRAPH_URL = 'http://stats.example.synnefo.org/stats/v1.0/net-ts/%s' |
|
94 | 98 |
|
95 | 99 |
# Recommended refresh period for server stats |
96 | 100 |
STATS_REFRESH_PERIOD = 60 |
Also available in: Unified diff