By default Loki allows to push samples at most 1 week old. When cloudkitty processor is started for the first time, it'll try to process data from the 1st day of the current month and store them into the configured storage backend. If it's currently after the 7th day of the month and the collector has data older than a week, the processor will try to push data to Loki older than a week, which Loki will reject by default. This change configures Loki deployed in devstack to accept data up to 31 days old. Change-Id: Ieb43692f9a4f84b1b298fbaa4fdb736544f85b64 Signed-off-by: Jaromir Wysoglad <jwysogla@redhat.com>
Installing CloudKitty using DevStack
The devstack directory contains the required files to
integrate CloudKitty with DevStack.
Configure DevStack to run CloudKitty
$ DEVSTACK_DIR=/path/to/devstackEnable Ceilometer:
$ cd ${DEVSTACK_DIR} $ cat >> local.conf << EOF [[local|localrc]] # ceilometer enable_plugin ceilometer https://opendev.org/openstack/ceilometer.git master EOFEnable CloudKitty:
$ cd ${DEVSTACK_DIR} cat >> local.conf << EOF # cloudkitty enable_plugin cloudkitty https://opendev.org/openstack/cloudkitty master enable_service ck-api, ck-proc EOFSet CloudKitty collector to gnocchi:
$ cd ${DEVSTACK_DIR} cat >> local.conf << EOF CLOUDKITTY_COLLECTOR=gnocchi EOF
Run devstack as usual:
$ ./stack.shSee the documentation if you want more details about how to configure the devstack plugin.