3slab/prometheus-monitoring-bundle
/health). This is valuable for SLO/SLI monitoring and alerting.VdmHealthcheckBundle, VdmPrometheusBundle). While functional, this introduces technical debt risk due to lack of maintenance.prometheus-bundle).VdmPrometheusBundle/VdmHealthcheckBundle, which may offer better long-term support. Migration effort to newer packages should be evaluated.VdmPrometheusBundle?
/metrics directly, or via a reverse proxy (e.g., Nginx)?/metrics and /health endpoints are unique.composer why-not prometheus-bundle).prometheus --web.enable-lifecycle + curl http://localhost:9090/api/v1/targets).VdmPrometheusBundle (documented migration steps may not exist).scrape_configs in prometheus.yml targets the Laravel /metrics endpoint:
scrape_configs:
- job_name: 'laravel_app'
static_configs:
- targets: ['laravel-app:8080']
blackbox.yml:
modules:
http_2xx:
prober: http
timeout: 5s
targets:
laravel_health:
module: http_2xx
url: http://laravel-app/health
/metrics or /health endpoints./metrics endpoint and verify Prometheus can scrape it.http://prometheus:9090/graph)./health endpoint and test with curl/Blackbox Exporter.prometheus-bundle).VdmPrometheusBundle within 6–12 months.composer.json to avoid unexpected updates:
"3slab/prometheus-monitoring-bundle": "dev-master"
scrape_interval in Prometheus is tuned (e.g., 15s for high-cardinality metrics).sample_limit to avoid overloading the app./metrics and /health behind a load balancer if needed (e.g., for multi-AZ setups).| Failure Scenario | Impact | Mitigation |
|---|---|---|
Prometheus cannot scrape /metrics |
Metrics missing in dashboards/alerts | Alert on scrape failures; check Laravel logs. |
/health endpoint returns 5xx |
Blackbox Exporter marks app unhealthy | Configure retries in Blackbox Exporter. |
| Laravel upgrade breaks compatibility | Bundle fails to load | Test upgrades in staging; fork if needed. |
| Dependency vulnerability | Security risk | Monitor composer audit; patch or migrate. |
prometheus.yml/blackbox.yml./health endpoint (e.g., 99.9% availability).How can I help you explore Laravel packages today?