Skip to content

Instantly share code, notes, and snippets.

@psachin
Last active November 15, 2017 06:44
Show Gist options
  • Save psachin/53b3c59121cb360c6a8b88bd954fd1e9 to your computer and use it in GitHub Desktop.
Save psachin/53b3c59121cb360c6a8b88bd954fd1e9 to your computer and use it in GitHub Desktop.
Gnocchi with AWS S3 backend(tested on tripleo-quickstart(PIKE))

gnocchi with s3 backend(tested on tripleo-quickstart(PIKE))

Steps:

  1. Follow this: https://julien.danjou.info/blog/2017/metrics-on-amazon-with-gnocchi-s3-driver

    a. Install python-boto3 on overcloud controller nodes

    yum install python-pip
    pip install boto3
        

    b. Make sure overcloud controller is in time sync

    systemctl stop ntpd
    ntpdate in.pool.ntp.org
    systemctl start ntpd
        
  1. Points to remember in file /etc/gnocchi/gnocchi.conf:
    [indexer]
    # Syntax
    # url = postgresql://<DB_USERNAME>:<DB_PASSWORD>@<GNOCCHI_ENDPOINT>:5432/gnocchi
    
    # Example:
    url = postgresql://gnocchi:[email protected]:5432/gnocchi
       
    [storage]
    driver = s3
    s3_endpoint_url = https://s3.ap-south-13.amazonaws.com
    s3_region_name = ap-south-13
    s3_access_key_id = <ACCESS_KEY_ID>
    s3_secret_access_key = <SECRET_KEY>
    s3_bucket_prefix = gnocchi # This is really important, choose unique prefix as S3 bucket names are global
        
  2. You may need edit security group for RDS instance and allow from “Anywhere” in “source”. Refer screenshot in comment below.
@psachin
Copy link
Author

psachin commented Nov 14, 2017

sg-gnocchi-s3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment