Skip to content

chaseisabelle/phprom-example

Repository files navigation

example symfony app for phprom bundle

docker example for phprom bundle


services

topology


usage

https://www.youtube.com/watch?v=XkTPMJzch8E

  1. make restart
  2. navigate to localhost:3000
  3. login with
    • username: admin
    • password: admin
  4. select "skip" or enter a custom password
  5. select the dashboard

notes:

  • use the "percentile" switcher in the top-left to select different latency percentiles

what to expect

make ps
docker-compose ps
    Name                  Command               State           Ports
------------------------------------------------------------------------------
curler         docker-php-entrypoint php  ...   Up
grafana        /run.sh                          Up      0.0.0.0:3000->3000/tcp
phprom-grpc    /phprom                          Up      0.0.0.0:3333->3333/tcp
phprom-rest    /phprom --address=0.0.0.0: ...   Up      0.0.0.0:8888->8888/tcp
prometheus     /bin/prometheus --config.f ...   Up      0.0.0.0:9090->9090/tcp
symfony-grpc   docker-php-entrypoint php  ...   Up      0.0.0.0:80->80/tcp
symfony-rest   docker-php-entrypoint php  ...   Up      0.0.0.0:8080->8080/tcp

screenshot

screenshot

screenshot


commands

  • make restart to do a clean start
  • make start to build, install, and run
  • make up to build and run
  • make logs to see the logs
  • make ps alias for docker-compose ps
  • make install to install composer dependencies
  • make upgrade to upgrade composer dependencies
  • make curl to hit the GET /metrics endpoint

About

example of phprom bundle implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published