{"id":24429131,"url":"https://github.com/sofianhw/lumen-prometheus-sample","last_synced_at":"2026-04-21T16:02:43.835Z","repository":{"id":145456251,"uuid":"449606678","full_name":"sofianhw/lumen-prometheus-sample","owner":"sofianhw","description":"lumen-prometheus-sample","archived":false,"fork":false,"pushed_at":"2022-01-24T09:26:47.000Z","size":622,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T13:35:27.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sofianhw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-19T08:24:11.000Z","updated_at":"2022-01-24T04:16:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b63b418-c9fc-4b5a-b594-a78b92ee94f5","html_url":"https://github.com/sofianhw/lumen-prometheus-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2Flumen-prometheus-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2Flumen-prometheus-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2Flumen-prometheus-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2Flumen-prometheus-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sofianhw","download_url":"https://codeload.github.com/sofianhw/lumen-prometheus-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243456568,"owners_count":20293905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-20T13:33:30.262Z","updated_at":"2025-12-29T16:44:28.740Z","avatar_url":"https://github.com/sofianhw.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test Application \nThis application was created in order to be able to test various aspects \nand functionality of the prometheus exporter project. It may also act as \na dockerized test-bed installation of Lumen.\n\n![test application diagram](docs/example_app.png)\n\n## Installation\nIn order to run this application you'll need [Docker](https://docs.docker.com/install/) \nalong with [docker-compose](https://docs.docker.com/compose/install/).\nFor some functions you will also need cURL.\n\n## Usage\nThe most commands needed exist in the `Makefile`. This includes\ncommon commands for Docker, as well as commands for extra functionality,\nlike printing url of the available services to stdout.\n\n### Basic usage\n\n- To run this project and test the results you simply need to run `$ make up`,\n\n- head to `localhost:8080/test` (default port) make a few requests or use:\n\n```bash\n$ make call\n```\n\n`call` will perform a number of requests via curl. Default is 100 requests.\nIf you wish to change the number head to `.env.docker` and set `TIMES_TO_CALL_EXAMPLE_ROUTE`\nto your preference.\n\n- The last step is to open Grafana and see your metrics!\nGrafana listens to `localhost:3326` (default port).\n\n### Useful commands\n\n- To print all the available commands\n```bash\n$ make help\n```\n\n- To create and start the application services run:\n```bash\n$ make up\n```\n\n- To start the application services run:\n```bash\n$ make start\n```\n\n- To stop the application services run:\n```bash\n$ make stop\n```\n\n- To completely remove the application services run:\n```bash\n$ make down\n```\n\n### Change application ports\n\nThe ports registered in the example application might be already \ntaken. If you happen to have conflicts you need to change the port having\nconflicts in `.env.docker`.\n\nE.g.\nThe Grafana port is registered at `3326` \n\n```dotenv\nEXAMPLE_APP_GRAFANA_PORT=3326\n```\n\nYou'll need to change it as:\n\n```dotenv\nEXAMPLE_APP_GRAFANA_PORT=3111\n```\n\n### Rebuild the example app container\n\nTo remove the built image and create it again:\n```bash\n$ make rebuild\n```\n\n### Calling the route\n\nThe example route for testing is at `localhost:8080/test`\n\nEach time you perform `make up` all the services get printed.\nTo print all the available services use:\n\n```bash\n$ make generate-links\n``` \n\n### Updating Grafana\n\nEach time you perform `make up` the `dashboard.json` Grafana dashboards along with \nthe available data-sources, get updated.\nTo perform the update by yourself use:\n\n```bash\n$ make provision\n``` \n\nThe default Grafana credentials are:\n```\nusername: admin\npassword: admin\n```\n\nTo check the diagrams containing metrics, head to your \ngiven Grafana URL and click on `Home -\u003e App Overview`.\n\nPrometheus scrapes every 30 seconds so be patient and \nmake enough calls to see your metrics.\n\n An example view if you have completed the process successfully \n should be: \n  \n![grafana example](docs/grafana_example.png)\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofianhw%2Flumen-prometheus-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofianhw%2Flumen-prometheus-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofianhw%2Flumen-prometheus-sample/lists"}