PHPackages                             spiti/octane-exporter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. spiti/octane-exporter

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

spiti/octane-exporter
=====================

Export Laravel Octane metrics using this Prometheus exporter.

1.0.1(1y ago)01MITPHP

Since Mar 10Pushed 1y agoCompare

[ Source](https://github.com/vasilysmolin/octane-exporter)[ Packagist](https://packagist.org/packages/spiti/octane-exporter)[ Docs](https://github.com/vasilysmolin/octane-exporter)[ GitHub Sponsors](https://github.com/rennokki)[ RSS](/packages/spiti-octane-exporter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel Octane Prometheus Exporter
==================================

[](#laravel-octane-prometheus-exporter)

[![CI](https://github.com/renoki-co/octane-exporter/workflows/CI/badge.svg?branch=master)](https://github.com/renoki-co/octane-exporter/workflows/CI/badge.svg?branch=master)[![codecov](https://camo.githubusercontent.com/70159386a281bb46f26d7f6ea8f70568b7211012acca0c7ab0466921d480efa1/68747470733a2f2f636f6465636f762e696f2f67682f72656e6f6b692d636f2f6f6374616e652d6578706f727465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/renoki-co/octane-exporter/branch/master)[![StyleCI](https://camo.githubusercontent.com/120b43688691a77e30725472ca197b8e1f6c13f6f2f446bbb244adabed65779a/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3431303830313634312f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/410801641)[![Latest Stable Version](https://camo.githubusercontent.com/e52467b9998a17d551b321c39c037245664ab1e044cf37852363e32f193455a5/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6f6374616e652d6578706f727465722f762f737461626c65)](https://packagist.org/packages/renoki-co/octane-exporter)[![Total Downloads](https://camo.githubusercontent.com/54b626758a1587665101501103b79cf2f73e6cb636ba47f3d09abe745bdfa09f/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6f6374616e652d6578706f727465722f646f776e6c6f616473)](https://packagist.org/packages/renoki-co/octane-exporter)[![Monthly Downloads](https://camo.githubusercontent.com/3b7be99687a41e9f548b184eee6d284d7e3a8d9bb34ac05170b7e228150142d1/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6f6374616e652d6578706f727465722f642f6d6f6e74686c79)](https://packagist.org/packages/renoki-co/octane-exporter)[![License](https://camo.githubusercontent.com/7137804a63c9da685807a3ea01269bebfade4f0d2fb0d9f54ea912b1cc74fc19/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6f6374616e652d6578706f727465722f6c6963656e7365)](https://packagist.org/packages/renoki-co/octane-exporter)

Export Laravel Octane metrics using this Prometheus exporter.

🤝 Supporting
------------

[](#-supporting)

**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). 📦**

[![](https://camo.githubusercontent.com/cc959d046e03001bfb6a5df8df6d86d4308695970be1fe90442991db1a7eeacd/68747470733a2f2f6769746875622d636f6e74656e742e73332e66722d7061722e7363772e636c6f75642f7374617469632f33302e6a7067)](https://github-content.renoki.org/github-repo/30)

🚀 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require renoki-co/octane-exporter
```

In case you haven't published your Octane settings, do so:

```
php artisan octane:install
```

Next up, add the following Octane tables in your `config/octane.php`. These tables will be used to keep track of stats for the events:

```
return [

    'tables' => [
        'octane_exporter_requests:1' => [
            'total_count' => 'int',
            '2xx_count' => 'int',
            '3xx_count' => 'int',
            '4xx_count' => 'int',
            '5xx_count' => 'int',
        ],
        'octane_exporter_tasks:1' => [
            'total_count' => 'int',
            'active_count' => 'int',
        ],
        'octane_exporter_workers:1' => [
            'active_count' => 'int',
        ],
        'octane_exporter_ticks:1' => [
            'total_count' => 'int',
            'active_count' => 'int',
        ],

        // ...
    ],

];
```

The final step is to add the following listeners after the already existent ones in `config/octane.php`:

```
return [

    'listeners' => [
        WorkerStarting::class => [
            // ...
            \RenokiCo\OctaneExporter\Listeners\TrackStartedWorkers::class,
        ],

        RequestTerminated::class => [
            // ...
            \RenokiCo\OctaneExporter\Listeners\TrackTerminatedRequests::class,
        ],

        TaskReceived::class => [
            // ...
            \RenokiCo\OctaneExporter\Listeners\TrackReceivedTasks::class,
        ],

        TaskTerminated::class => [
            // ...
            \RenokiCo\OctaneExporter\Listeners\TrackTerminatedTasks::class,
        ],

        TickReceived::class => [
            // ...
            \RenokiCo\OctaneExporter\Listeners\TrackReceivedTicks::class,
        ],

        TickTerminated::class => [
            // ...
            \RenokiCo\OctaneExporter\Listeners\TrackTerminatedTicks::class,
        ],

        WorkerStopping::class => [
            // ...
            \RenokiCo\OctaneExporter\Listeners\TrackStoppedWorkers::class,
        ],
    ],

];
```

🙌 Usage
-------

[](#-usage)

This package is pretty straightforward. Upon installing it, it will register the route at `/exporter/group/octane-metrics` and you can point Prometheus towards it for scraping.

```
scrape_configs:
  - job_name: 'octane'
    metrics_path: '/exporter/group/octane-metrics'
    scrape_interval: 5
    static_configs:
      - targets: ['localhost:8000']
        labels:
          app: 'my-octane-app'
```

Please keep in mind that the metrics are calculated by-process. Point your Prometheus scraper to all instances that run the Octane start command.

```
# HELP laravel_octane_active_tasks_count Get the number of active tasks that pass through Octane.
# TYPE laravel_octane_active_tasks_count gauge
laravel_octane_active_tasks_count{remote_addr="",addr="",name=""} 0
# HELP laravel_octane_active_ticks_count Get the number of active ticks that run currently in Octane.
# TYPE laravel_octane_active_ticks_count gauge
laravel_octane_active_ticks_count{remote_addr="",addr="",name=""} 0
# HELP laravel_octane_active_workers_count Get the number of active workers for Octane.
# TYPE laravel_octane_active_workers_count gauge
laravel_octane_active_workers_count{remote_addr="",addr="",name=""} 8
# HELP laravel_octane_requests_count Get the number of requests, by status, that passed through Octane.
# TYPE laravel_octane_requests_count gauge
laravel_octane_requests_count{remote_addr="",addr="",name="",status="2xx_count"} 7
laravel_octane_requests_count{remote_addr="",addr="",name="",status="3xx_count"} 0
laravel_octane_requests_count{remote_addr="",addr="",name="",status="4xx_count"} 0
laravel_octane_requests_count{remote_addr="",addr="",name="",status="5xx_count"} 0
laravel_octane_requests_count{remote_addr="",addr="",name="",status="total_count"} 7
# HELP laravel_octane_status Check if the octane service is running. 1 = active, 0 = inactive
# TYPE laravel_octane_status gauge
laravel_octane_status{remote_addr="",addr="",name=""} 1
# HELP laravel_octane_total_tasks_count Get the number of total tasks that passed through Octane.
# TYPE laravel_octane_total_tasks_count gauge
laravel_octane_total_tasks_count{remote_addr="",addr="",name=""} 0
# HELP laravel_octane_total_ticks_count Get the number of total ticks that got through Octane. This is the equivalent of seconds passed since this server is alive.
# TYPE laravel_octane_total_ticks_count gauge
laravel_octane_total_ticks_count{remote_addr="",addr="",name=""} 1242
# HELP php_info Information about the PHP environment.
# TYPE php_info gauge
php_info{version="8.0.11"} 1

```

🐛 Testing
---------

[](#-testing)

```
vendor/bin/phpunit
```

🤝 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

🔒 Security
----------

[](#--security)

If you discover any security related issues, please email  instead of using the issue tracker.

🎉 Credits
---------

[](#-credits)

- [Alex Renoki](https://github.com/rennokki)
- [All Contributors](../../contributors)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance47

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 63.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

425d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7bba5bd50f9c247978bcda4f41a0edf4382c1f392aa5b54f69559276081acc88?d=identicon)[vasilysmolin](/maintainers/vasilysmolin)

---

Top Contributors

[![rennokki](https://avatars.githubusercontent.com/u/21983456?v=4)](https://github.com/rennokki "rennokki (55 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![hiddehs](https://avatars.githubusercontent.com/u/20111194?v=4)](https://github.com/hiddehs "hiddehs (5 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (5 commits)")[![smortexa](https://avatars.githubusercontent.com/u/47121888?v=4)](https://github.com/smortexa "smortexa (3 commits)")[![lovlyx](https://avatars.githubusercontent.com/u/110987585?v=4)](https://github.com/lovlyx "lovlyx (2 commits)")[![vasilysmolin](https://avatars.githubusercontent.com/u/28043582?v=4)](https://github.com/vasilysmolin "vasilysmolin (1 commits)")

---

Tags

phplaravelMetricsswooleoctaneprometheusgrafana

### Embed Badge

![Health badge](/badges/spiti-octane-exporter/health.svg)

```
[![Health](https://phpackages.com/badges/spiti-octane-exporter/health.svg)](https://phpackages.com/packages/spiti-octane-exporter)
```

###  Alternatives

[renoki-co/octane-exporter

Export Laravel Octane metrics using this Prometheus exporter.

30128.9k](/packages/renoki-co-octane-exporter)[leventcz/laravel-top

Real-time monitoring straight from the command line for Laravel applications.

581105.7k1](/packages/leventcz-laravel-top)[renoki-co/horizon-exporter

Export Laravel Horizon metrics using this Prometheus exporter.

24152.7k](/packages/renoki-co-horizon-exporter)[triadev/laravel-prometheus-exporter

A laravel and lumen service provider to export metrics for prometheus.

2728.2k1](/packages/triadev-laravel-prometheus-exporter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
