Scott Baker | 169c723 | 2015-01-03 16:51:01 -0800 | [diff] [blame] | 1 | from planetstack.settings import STATISTICS_DRIVER |
Sapan Bhatia | b4f1812 | 2014-12-16 01:07:33 -0500 | [diff] [blame] | 2 | |
Scott Baker | 169c723 | 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 |