{"id":15062620,"url":"https://github.com/renoki-co/horizon-exporter","last_synced_at":"2025-06-30T06:06:54.019Z","repository":{"id":36995331,"uuid":"409155353","full_name":"renoki-co/horizon-exporter","owner":"renoki-co","description":"Export Laravel Horizon metrics using this Prometheus exporter.","archived":false,"fork":false,"pushed_at":"2025-05-19T10:37:46.000Z","size":83,"stargazers_count":25,"open_issues_count":6,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T11:16:10.861Z","etag":null,"topics":["broadcast","events","exporter","grafana","hacktoberfest","horizon","jobs","laravel","php","prometheus","queue","queuing"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/renoki-co.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":"rennokki"}},"created_at":"2021-09-22T10:13:06.000Z","updated_at":"2024-03-31T20:50:45.000Z","dependencies_parsed_at":"2025-04-10T10:08:51.526Z","dependency_job_id":"30e8ca68-6ded-470e-9a9e-3fc4ac19f52c","html_url":"https://github.com/renoki-co/horizon-exporter","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":"renoki-co/laravel-package-skeleton","purl":"pkg:github/renoki-co/horizon-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renoki-co%2Fhorizon-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renoki-co%2Fhorizon-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renoki-co%2Fhorizon-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renoki-co%2Fhorizon-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renoki-co","download_url":"https://codeload.github.com/renoki-co/horizon-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renoki-co%2Fhorizon-exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262720643,"owners_count":23353450,"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":["broadcast","events","exporter","grafana","hacktoberfest","horizon","jobs","laravel","php","prometheus","queue","queuing"],"created_at":"2024-09-24T23:43:52.651Z","updated_at":"2025-06-30T06:06:53.929Z","avatar_url":"https://github.com/renoki-co.png","language":"PHP","funding_links":["https://github.com/sponsors/rennokki"],"categories":[],"sub_categories":[],"readme":"Laravel Horizon Prometheus Exporter\n===================================\n\n![CI](https://github.com/renoki-co/horizon-exporter/workflows/CI/badge.svg?branch=master)\n[![codecov](https://codecov.io/gh/renoki-co/horizon-exporter/branch/master/graph/badge.svg)](https://codecov.io/gh/renoki-co/horizon-exporter/branch/master)\n[![StyleCI](https://github.styleci.io/repos/409155353/shield?branch=master)](https://github.styleci.io/repos/409155353)\n[![Latest Stable Version](https://poser.pugx.org/renoki-co/horizon-exporter/v/stable)](https://packagist.org/packages/renoki-co/horizon-exporter)\n[![Total Downloads](https://poser.pugx.org/renoki-co/horizon-exporter/downloads)](https://packagist.org/packages/renoki-co/horizon-exporter)\n[![Monthly Downloads](https://poser.pugx.org/renoki-co/horizon-exporter/d/monthly)](https://packagist.org/packages/renoki-co/horizon-exporter)\n[![License](https://poser.pugx.org/renoki-co/horizon-exporter/license)](https://packagist.org/packages/renoki-co/horizon-exporter)\n\nExport Laravel Horizon metrics using this Prometheus exporter. This package leverages [Exporter Contracts](https://github.com/renoki-co/laravel-exporter-contracts).\n\n## 🤝 Supporting\n\n**If you are using one or more Renoki Co. open-source packages in your production apps, in presentation demos, hobby projects, school projects or so, sponsor our work with [Github Sponsors](https://github.com/sponsors/rennokki). 📦**\n\n[\u003cimg src=\"https://github-content.s3.fr-par.scw.cloud/static/29.jpg\" height=\"210\" width=\"418\" /\u003e](https://github-content.renoki.org/github-repo/29)\n\n## 🚀 Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require renoki-co/horizon-exporter\n```\n\nPublish the config:\n\n```bash\n$ php artisan vendor:publish --provider=\"RenokiCo\\HorizonExporter\\HorizonExporterServiceProvider\" --tag=\"config\"\n$ php artisan vendor:publish --provider=\"RenokiCo\\LaravelExporter\\LaravelExporterServiceProvider\" --tag=\"config\"\n```\n\n## 🙌 Usage\n\nThis package is pretty straightforward. Upon installing it, it will register the route at `/exporter/group/horizon-metrics` and you can point Prometheus towards it for scraping.\n\nPlease keep in mind that the metrics are not calculated by-process, but as a whole across all supervisors. Point your Prometheus scraper to one of the instances for horizontally-scaled environments.\n\n```\n# HELP laravel_horizon_master_status That status of the Master Horizon process. 0 = inactive, 1 = paused, 2 = running.\n# TYPE laravel_horizon_master_status gauge\nlaravel_horizon_master_status{name=\"master-1\",pid=\"10082\"} 2\n\n# HELP laravel_horizon_queue_runtime Get total jobs runtime by queue.\n# TYPE laravel_horizon_queue_runtime gauge\nlaravel_horizon_queue_runtime{queue=\"default\"} 41.085\n\n# HELP laravel_horizon_queue_throughput Get total jobs throughput by queue.\n# TYPE laravel_horizon_queue_throughput gauge\nlaravel_horizon_queue_throughput{queue=\"default\"} 4\n\n# HELP laravel_horizon_job_runtime Get total workload runtime by job name.\n# TYPE laravel_horizon_job_runtime gauge\nlaravel_horizon_job_runtime{job=\"RenokiCo\\\\HorizonExporter\\\\Test\\\\Jobs\\\\BasicJob\"} 53.666666666667\nlaravel_horizon_job_runtime{job=\"RenokiCo\\\\HorizonExporter\\\\Test\\\\Jobs\\\\BasicJob2\"} 3.34\n\n# HELP laravel_horizon_job_throughput Get total workload throughput by job name.\n# TYPE laravel_horizon_job_throughput gauge\nlaravel_horizon_job_throughput{job=\"RenokiCo\\\\HorizonExporter\\\\Test\\\\Jobs\\\\BasicJob\"} 3\nlaravel_horizon_job_throughput{job=\"RenokiCo\\\\HorizonExporter\\\\Test\\\\Jobs\\\\BasicJob2\"} 1\n\n# HELP laravel_horizon_jobs_by_type Get total processed jobs into all queues by specific type (i.e. completed, pending, etc.).\n# TYPE laravel_horizon_jobs_by_type gauge\nlaravel_horizon_jobs_by_type{type=\"completed\"} 4\nlaravel_horizon_jobs_by_type{type=\"failed\"} 1\nlaravel_horizon_jobs_by_type{type=\"pending\"} 1\nlaravel_horizon_jobs_by_type{type=\"recent\"} 6\nlaravel_horizon_jobs_by_type{type=\"recent_failed\"} 1\n\n# HELP php_info Information about the PHP environment.\n# TYPE php_info gauge\nphp_info{version=\"8.0.10\"} 1\n```\n\n## 🐛 Testing\n\n``` bash\nvendor/bin/phpunit\n```\n\n## 🤝 Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## 🔒  Security\n\nIf you discover any security related issues, please email alex@renoki.org instead of using the issue tracker.\n\n## 🎉 Credits\n\n- [Alex Renoki](https://github.com/rennokki)\n- [All Contributors](../../contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenoki-co%2Fhorizon-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenoki-co%2Fhorizon-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenoki-co%2Fhorizon-exporter/lists"}