Show how to use the influxDB connector with Cloud Foundry in spring boot. You can find this connector here https://github.com/orange-cloudfoundry/spring-cloud-influxdb-connectors.
You will found a small web app with a scheduled task to push some data into an influxDB database.
In all cases:
- Clone this repo:
git clone https://github.com/orange-cloudfoundry/influxdb-connectors-poc.git
- Go inside the new created folder in command line:
cd influxdb-connectors-poc
- Build the app with maven:
mvn clean install
- Create an influxDB service Since no influxDB service offering seems to be available in any marketplace, you can use an influxDB service by creating the following user provided service.
$cf cups influxdb-service -p '{"dbname": "<DB_NAME>", "hostname": "<HOSTNAME>", "password": "<PASSWORD>", "port": "<PORT>", "uri": "<URI>", "username": "<USERNAME>"}'
- In command line do a
cf push
- After the app has been pushed bind your new created service to your app (e.g:
cf bs poc-influxdb influxdb-service
) - Restage your app:
cf restage poc-influxdb
Not supported
Not Supported