...
Code Block | ||
---|---|---|
| ||
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.
Starting Running 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.
Review:
https://gerrit.nordixonap.org/r/c/onap/policy/docker/+/12229127030