Run CPS-NCMP with Grafana Monitoring
Work in Progress
NO ready for use yet
References
Instructions
Below instructions enable CPS-NCMP with a stubbed DMI Plugin.
Additional services, Prometheus and Grafana are also deployed to allow monitoring through the Grafana UI
All relevant CPS files can be found in \Docker-Compose
Update with-grafana.yml and prometheus.yml with your local IP address where needed
look for insert-your-ipfrom cps\docker-compose run
docker-compose -f with-grafana.yml up(after about 1-2 mins CPS should be up, test using Swagger:
http://localhost:8883/swagger-ui/index.html?configUrl=%2Fv3%2Fapi-docs%2Fswagger-configCheck Prometheus raw stats using management interface:
http://localhost:8887/manage/prometheusCheck Prometheus UI Target
http://localhost:9090/targetsLogin to Grafana and set password (frist time only)
http://localhost:3000/dashboards default user: admin, password: adminNavigate to dat source and add one:
http://localhost:3000/datasources/new
Click on Prometheus, give it a name and add url using your PI address e.g http://172.21.48.1:9090Click on 'Save & test'' (bottom of screen) and ensure your get 'Data source is working'
Go back to Dashboards
http://localhost:3000/dashboards