cloudsoft.io

Metering

This guide will help walk you through the necessary steps to install and run the metering microservice. More information can be found here.

Prerequisites

As a customer of AMP you should have access to the cloudsoft-amp-all tarball. If you do not have access to this, please contact Cloudsoft. Ensure that this tarball has been expanded and is in an accessible place.

Ensure that you have an up to date BR cli installed. If you do not, the quickest way to get one is to go to your running AMP server, select the menu icon in the top right and select the CLI download page. From that page, please select the flavour that will work with your operating system.

Installation

In the expanded cloudsoft-amp-all directory, navigate to:

extras/metering-microservice-{version} 

In this folder you will find a file named metering-microservice-jar-{verison}.jar. This jar is the stand-alone metering microservice application. Please host this file in a location that is accessible to the cloud in which you are going to deploy the microservice. For example, it could be hosted in an S3 bucket or your enterprise’s artifact repository.

Once that has been done we need to add the metering bundle to your running AMP. This bundle contains the entities required to deploy the microservice from AMP. Please use the BR cli to login to your AMP server:

br login http://localhost:8081

Then add the metering microservice bundle to your AMP:

br catalog add metering-microservice-bundle-{verison}.jar

 Running

To create an instance of the metering microservice, navigate to the home page of your AMP server. In the quick launch section, find and select the metering microservice icon. You will be presented with a dialog box. Please enter the location in which you want to run the microservice. Also, please enter the URI of the metering-microservice-jar (this will have been made accessible in the Installation section). After selecting deploy, your AMP will setup the metering microservice in your target location.