jobilla / cloud-native-laravel
Prometheus collectors for Laravel
Installs: 11 732
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 13
Forks: 3
Open Issues: 10
Requires
- php: ^7.4|^8.0
- ext-apcu: *
- illuminate/http: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/routing: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/support: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- monolog/monolog: ^2.0|^3.0
- promphp/prometheus_client_php: ^2.2
This package is auto-updated.
Last update: 2024-11-09 00:00:25 UTC
README
This library contains a collection of resources we use at Jobilla for our Laravel microservices. It's aimed at minimising the friction of setting up a new service by providing sensible defaults from the get-go.
What you get out of the box
- standardised metrics output in Prometheus format on
/metrics
- JSON-formatted logs with minimal setup
Installation
composer require jobilla/cloud-native-laravel
php artisan vendor:publish --tag=cloud-native-config
(note that this will also publish alogging.php
that overwrites the default Laravel logging config)- Optionally, run
php artisan vendor:publish --tag=dockerfile
to publish aDockerfile
to your project root