Run CPS-NCMP with Grafana Monitoring

 

Work in Progress

NO ready for use yet

 

References

  1. CPS-1465: Explore Visualization tools for Instrumentation DataClosed

  2. https://gerrit.onap.org/r/c/cps/+/133191

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

  1. Update with-grafana.yml and prometheus.yml with your local IP address where needed
    look for insert-your-ip

  2. from cps\docker-compose run
    docker-compose -f with-grafana.yml up

  3. (after about 1-2 mins CPS should be up, test using Swagger:
    http://localhost:8883/swagger-ui/index.html?configUrl=%2Fv3%2Fapi-docs%2Fswagger-config

  4. Check Prometheus raw stats using management interface:
    http://localhost:8887/manage/prometheus

  5. Check Prometheus UI Target
    http://localhost:9090/targets

  6. Login to Grafana and set password (frist time only)
    http://localhost:3000/dashboards default user: admin, password: admin

  7. Navigate 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:9090

  8. Click on 'Save & test'' (bottom of screen) and ensure your get 'Data source is working'

  9. Go back to Dashboards
    http://localhost:3000/dashboards