{"id":20892909,"url":"https://github.com/a5sys/monitorbundle","last_synced_at":"2025-10-30T01:48:12.399Z","repository":{"id":56938910,"uuid":"76865722","full_name":"A5sys/MonitorBundle","owner":"A5sys","description":null,"archived":false,"fork":false,"pushed_at":"2017-01-24T10:23:58.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-16T23:04:22.130Z","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/A5sys.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}},"created_at":"2016-12-19T13:44:58.000Z","updated_at":"2016-12-19T14:16:58.000Z","dependencies_parsed_at":"2022-08-21T01:40:18.068Z","dependency_job_id":null,"html_url":"https://github.com/A5sys/MonitorBundle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/A5sys/MonitorBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A5sys%2FMonitorBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A5sys%2FMonitorBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A5sys%2FMonitorBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A5sys%2FMonitorBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/A5sys","download_url":"https://codeload.github.com/A5sys/MonitorBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A5sys%2FMonitorBundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268859134,"owners_count":24318877,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-11-18T10:14:14.533Z","updated_at":"2025-10-30T01:48:07.371Z","avatar_url":"https://github.com/A5sys.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monitor Bundle #\n\nThis bundle gives some statistics about the application usage.\n\nYou can easily know, day per day:\n\n *  how many requests did not end\n *  the slow requests\n  * the requests that kills you app performance\n \n\n# Installation #\n\n## Download ##\nDownload the bundle using composer:\n\n\tcomposer require 'a5sys/monitor-bundle'\n\n## Enable bundle ##\nEnable the bundle in your /app/AppKernel.php:\n\n    new A5sys\\MonitorBundle\\MonitorBundle(),\n    \nNote that you also need to enable the jms-translation bundle:\n\n    new JMS\\TranslationBundle\\JMSTranslationBundle(),\n\n## Add channel ##\nConfigure the logger:\n\n\tmonolog:\n\t    channels: ['monitor']\n\t    handlers:        \n\t        monitor:\n        \t    type:  rotating_file\n\t            max_files: 60\n        \t    path:  \"%kernel.logs_dir%/monitor.log\"\n\t            channels: ['monitor']\n        \t    formatter: monitor.monolog.formatter\n\nDo not forget to remove the channel monitor from your main log if you do not want to spam it.\n\nExample:\n\n\tmonolog:\n\t    handlers:\n\t        main:\n\t            type: rotating_file\n\t            max_files: 60\n\t            path:   \"%kernel.logs_dir%/%kernel.environment%.log\"\n\t            level:  debug\n\t            channels: [!'monitor']\n\n## Routing ##\nSet up routing, in your app/config/routing.yml\n\n    monitor_controller:\n        resource: \"@MonitorBundle/Controller/\"\n        type:     annotation\n        prefix:   /monitor\n\n## Security ##\n\nSet up security, in your app/config/security.yml\n\n    security:\n        access_control:\n            - { path: ^/monitor/, roles: ROLE_SUPER_ADMIN }\n            \n## Configuration ##\n\nThese are the available configurations with their default value:\n\n\tmonitor:\n\t    enable: true #enable or disable the logs\n            slow_threshold:\n            \twarning: 1000 #the requests that needs more than X ms is a slow one\n            \terror: 3000 #the requests that needs more than X ms is an error, it takes too much time\n\ttypes:\n\t\tstart: true #is the start time for the request log required\n\t\tstop: true #is the stop time for the request log required\n\t\tduration: true #is the duration for the request log required\n\t\tmemory: true #is the memory for the request log required\n\t\turl: true #is the url for the request log required\n\t\tuser: true #is the user for the request log required\n# Usage #\n\nThe monitor logs are in your app/logs folder.\n\nThe statistics can be viewed at the url (depending  of your configuration)\n\n\thttp://yourapp/monitor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa5sys%2Fmonitorbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa5sys%2Fmonitorbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa5sys%2Fmonitorbundle/lists"}