Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
docker run -d -p --name=prometheus --network=host -v /path/to/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus:v2.32.1

...

Save and test to check if Grafana can connect to Prometheus.

Remember to stop/remove containers to run the commands again.


Running Starting with docker-compose:

Nordix review with how the updates can start

Clone the docker project.

Run ./csit/start-grafana.sh to start all the policy components (except for clamp) or run ./csit/start-grafana.sh ${component} to start per component. (i.e ./csit/start-grafana.sh pap will start pap and its dependencies only)

Prometheus and Grafana endpoints are shown at the end of script execution. Navigate to ${prometheus}/targets to check if all apps are up and connecting to the service. It takes a few minutes.

Docker compose setup has provisioning of prometheus datasource and two dashboards. As of now, only PAP and API have more detailed stats due to the use of micrometer and actuator. 


Review:

https://gerrit.nordixonap.org/r/c/onap/policy/docker/+/12229127030