Prerequisites
- Mobile Services installed on OpenShift cluster
Steps 1. Provision Metrics APB in your project by following the steps in docs 2. !TODO! Review this step: Clone https://github.com/aerogear/voyager-server , login to docker and inside the cloned repo, run cd examples && NAMESPACE="<your-dockerhub-id>" CI=true TAG=latest ../scripts/publishExamples.sh metrics 3. Provision Data Sync APB by following the steps in docs ^ !TODO! edit the link and use following parameters:
- Sync Application Name: test-1
- Sync Application Docker image: docker.io/aerogear/voyager-server-example-metrics
- Sync Application Docker image version: latest
- Sync App Port: 4000
- rest of parameters doesn't matter (use whatever you want)
4. In your OpenShift project, go to Resources -> Configmaps, select grafana-dashboards-configmap
Verify "sync-app-test-1-dashboard.json" key is present in the list 5. Provision other instance of Sync App APB with the same parameters as before except "Sync Application Name" - use "test-2" 6. Again, go to Resources -> Configmaps, select grafana-dashboards-configmap Verify "sync-app-test-2-dashboard.json" key is present in the list 7. Visit Grafana URL, login with OpenShift credentials and expand Data Sync row in Mobile Services Dashboard Verify both dashboard links (test-1 and test-2) are present in the Data Sync row 8. Visit each Sync app dashboards Verify each Sync app dashboard is accessible. 9. Deprovision all Sync App APBs and Metrics APB 10. Provision Metrics APB and both Sync App APBs again, but in reversed order (first both Sync App APBs, then Metrics APB) 11. Verify same things mentioned above 12. Deprovision all Sync App APBs and Metrics APB Verify there is no resource left in your project namespace related to Sync App APBs and Metrics APB (DCs, pods, configmaps, secrets, services, routes) Trello link |