Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Prometheus Laravel Package

spatie/laravel-prometheus

Export Laravel app metrics to Prometheus via a /prometheus endpoint. Register custom gauges/counters with simple callbacks, use built-in queue and Horizon metrics, and optionally secure the endpoint. Ideal for scraping by Prometheus and charting in Grafana.

View on GitHub
Deep Wiki
Context7

title: Using fly.io weight: 4

Applications hosted on fly.io get a Grafana dashboard automatically (available at fly-metrics.com).

You can publish your custom metrics to Fly, and view them in this hosted Grafana dashboard.

Configuring Your Fly App

Fly.io will scrape prometheus metrics automatically - we just need to tell it where to find them.

Assuming your application is outputing prometheus metrics at the default /prometheus endpoint, you can add the following [metrics] configuring to your app's fly.toml file:

[metrics]
port = 8080 # Match your "internal_port" config
path = "/prometheus" # default for this package

After you make this configuration change, you'll need to deploy your app for it to take effect. Run fly deploy, and Fly will begin scraping metrics.

Metrics will be available at fly-metrics.com, where you can create new dashboards/graphs using your custom metrics via the "Prometheus on Fly" data source.

Creating a Dashboard

From within fly-metrics.com, you can choose to create a new Dashboard. From there, you can add a new panel.

fly-metrics.net dashboard

To find your metrics, choose the "Prometheus on Fly" data source.

fly-metrics.net graph

From here on, you can create your dashboard as you would normally do in Grafana. For more information on how to create dashboards, please refer to the Grafana documentation.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport