Scott Baker | 86e132c | 2015-02-11 21:38:09 -0800 | [diff] [blame] | 1 | from xos.settings import STATISTICS_DRIVER |
Sapan Bhatia | df3130c | 2014-12-16 01:07:33 -0500 | [diff] [blame] | 2 | |
Scott Baker | a9b0d5e | 2015-01-03 16:51:01 -0800 | [diff] [blame] | 3 | if (STATISTICS_DRIVER=="ceilometer"): |
| 4 | from observer import ceilometer |
| 5 | driver = ceilometer.CeilometerDriver() |
| 6 | elif (not STATISTICS_DRIVER) or (STATISTICS_DRIVER.lower() == "none"): |
| 7 | # disabled |
| 8 | driver = None |
| 9 | else: |
| 10 | driver = None |
| 11 | print "WARNING: Unknown statistics driver %s" % STATISTICS_DRIVER |