Testing Changes to SwiftMetricsBluemix - RuntimeTools/SwiftMetrics GitHub Wiki
SwiftMetricsBluemix sends data to the auto-scaling agent in Bluemix, so testing any changes or support for new Swift levels is a manual process.
-
Create a test application that depends on and instantiates SwiftMetricsBluemix. Instructions here: https://console.bluemix.net/docs/services/Auto-Scaling/index.html
-
Deploy the application using
bx app push
-
Create the auto-scaling service. Use https://console.bluemix.net/catalog/services/auto-scaling or for stage1 server use https://console.stage1.bluemix.net/catalog/services/auto-scaling (or search the catalog for "Auto-scaling")
-
Attach the auto-scaling service to your app. It will need to be redeployed.
-
Open the page for the Auto-scaling service from your Bluemix home screen. Select Manage to create a policy.
-
After your application has been running for a while use the Metric Statistics tab to look at data that the Auto-scaling service has received. Swiftmetrics provides the Response Times so we need to see some data there, e.g: