The BF finder is the graphite plugin that allows graphite and grafana to use blueflood as a backend.
pip install blueflood-graphite-finder
In your graphite-api config file:
finders:
- blueflood_graphite_finder.blueflood.TenantBluefloodFinder
blueflood:
tenant: <tenantid>
username: <username>
apikey: <apikey>
authentication_module: blueflood_graphite_finder.rax_auth
authentication_class: BluefloodAuth
urls:
- https://blueflood-host:port
To install manually with code from github repo: Get the blueflood-graphite-finder repo from github. Execute the following commands
cd $REPO_LOCATION
virtualenv bf-finder
source bf-finder/bin/activate
pip install .
We can setup grafana server on a vagrant vm which visualizes local blueflood using BF finder. To spin up vagrant vm use the below commands.
vagrant box add ubuntu/trusty64
vagrant up
###Tests
The tests require the following environment variables. Atleast one of no-auth or auth test variables should be set.
For no-auth tests:
NO_AUTH_URL=<no auth url>
NO_AUTH_TENANT=<tenant id>
For auth tests:
AUTH_URL=<blueflood end point>
AUTH_TENANT=<tenant id>
AUTH_USER_NAME=<username>
AUTH_API_KEY=<user's api key>
To run tests, run the below commands
pip install tox
tox
To run nosetests, run the below commands
pip install -r blueflood-graphite-finder/test_requirements.txt
nosetests