Files
cloudkitty/devstack
Jaromir Wysoglad c714c52c82 Add reject_old_samples_max_age to loki config
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>
2025-10-17 15:02:57 +00:00
..
2024-03-05 18:06:11 +01:00

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/devstack
  1. Enable Ceilometer:

    $ cd ${DEVSTACK_DIR}
    $ cat >> local.conf << EOF
    [[local|localrc]]
    # ceilometer
    enable_plugin ceilometer https://opendev.org/openstack/ceilometer.git master
    EOF
  2. Enable CloudKitty:

    $ cd ${DEVSTACK_DIR}
    cat >> local.conf << EOF
    # cloudkitty
    enable_plugin cloudkitty https://opendev.org/openstack/cloudkitty master
    enable_service ck-api, ck-proc
    EOF
  3. Set CloudKitty collector to gnocchi:

    $ cd ${DEVSTACK_DIR}
    cat >> local.conf << EOF
    CLOUDKITTY_COLLECTOR=gnocchi
    EOF

Run devstack as usual:

$ ./stack.sh

See the documentation if you want more details about how to configure the devstack plugin.