Skip to content

A VERY simple PHP, Prometheus & Grafana setup to get started with business metrics

License

Notifications You must be signed in to change notification settings

php-usergroup-dresden/business-metrics-for-starters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Business metrics for starters

A VERY simple PHP, Prometheus & Grafana setup to get started with business metrics

Docker compose services

Assuming you have installed docker and docker-compose on your machine, go to the root directory of this project and run

docker-compose up -d

to fire up the following service setup.

  1. nginx will provide three URLs:

  2. http://127.0.0.1:8080 - The php script that provides metrics to the prometheus instance

  3. http://127.0.0.1:9090 - The prometheus instance web frontend

  4. http://127.0.0.1:3000 - The grafana instance web frontend

  5. php will provide the PHP-FPM to run your PHP script under /public/metrics.php

  6. prometheus will collect metrics from your PHP script unter http://127.0.0.1:8080/metrics.php

  7. grafana will visualize metrics with the prometheus instance as its data source

Used libraries

Configurations

nginx

PHP-FPM

Prometheus

Grafana

About

A VERY simple PHP, Prometheus & Grafana setup to get started with business metrics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages