blob: d29d017970dbd5d0bc442f25cbd52934fec85b14 [file] [log] [blame]
Scott Bakera9b0d5e2015-01-03 16:51:01 -08001from planetstack.settings import STATISTICS_DRIVER
Sapan Bhatiadf3130c2014-12-16 01:07:33 -05002
Scott Bakera9b0d5e2015-01-03 16:51:01 -08003if (STATISTICS_DRIVER=="ceilometer"):
4 from observer import ceilometer
5 driver = ceilometer.CeilometerDriver()
6elif (not STATISTICS_DRIVER) or (STATISTICS_DRIVER.lower() == "none"):
7 # disabled
8 driver = None
9else:
10 driver = None
11 print "WARNING: Unknown statistics driver %s" % STATISTICS_DRIVER