https://jira.onap.org/browse/CPS-1445 has introduce many timers for certain methods and also a Gauge for cache usage.
The raw Prometheus outputĀ is OK but not good for analysis of this e data.
The purpose of this task is to explore tool(s) to visualize the data in a way that it is easier to analyze the cps specifica data and troubleshoot performance issues in CPS and NCMP use cases
Tool(s) to consider
A/C
- Demo to Team
- Instructions on Wii on how to setup and use
Preliminary Instruction (valid for windows)
- from cps\docker-compose run
docker-compose --profile dmi-stub --profile monitoring up -d - (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 - Check Prometheus raw stats using management interface:
http://localhost:8887/manage/prometheus - Check Prometheus UI Target
http://localhost:9090/targets - Login to Grafana and set password (frist time only)
http://localhost:3000/dashboards default user: admin, password: admin - Navigate to dat source and add one:
http://localhost:3000/datasources/new
Click on Prometheus, give it a name and add this url: http://prometheus-container:9090 - Click on 'Save & test'' (bottom of screen) and ensure your get 'Data source is working'
- Go back to Dashboards
http://localhost:3000/dashboards