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.
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.
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.
From within fly-metrics.com, you can choose to create a new Dashboard. From there, you can add a new panel.

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

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.
How can I help you explore Laravel packages today?