Limits
- An evicted Redis key loses data without an error. A Redis with
maxmemory-policy noevictionevicts no key. - A cleared or restarted store resets every series. Backends read this as a counter reset.
- Integer counters are exact up to 2^63. A merge that passes this limit fails, and Redis keeps the part of the merge that ran before the error.
- Each metric keeps at most
cardinality_limitseries. Extra attribute sets go to one overflow series. - A failed merge is not retried. Its delta is lost.
- Two applications with the same Redis database, connection prefix and
store.prefixshare one store. - With the
cachestore, writers wait for each other. A merge that waits more than 1 second is dropped.php artisan cache:clearon that cache store deletes the metrics store.
Instruments
Section titled “Instruments”- Histograms use explicit bucket boundaries only. Exponential histograms are not supported.
- Histograms keep no min and no max.
- Other bucket boundaries for the same histogram name make another metric.
- Observable instruments created in a request are not merged. Only
Metrics::onExport()callbacks read observable values.
Export
Section titled “Export”- Two exporters with clocks out of step can send an older timestamp after a newer one. The Prometheus OTLP receiver rejects out-of-order samples.
- The OpenTelemetry Collector’s Prometheus exporter drops a series after
metric_expiration(5 minutes by default) without a push. - The metrics read on export describe only the process and the server that run the export.
- With cached routes, a change to
METRICS_PROMETHEUSorMETRICS_PROMETHEUS_PATHtakes effect only afterphp artisan config:cache, thenphp artisan route:cache.
Instrumentation
Section titled “Instrumentation”- Failed queries are not recorded: Laravel dispatches no event for them.
- Cache operations have no duration.
- Cache operations that dispatch no event are not counted. See Cache operations.
- Exceptions that Laravel does not report are not counted. See Exceptions.
- A scheduled task that runs in the background is timed until it has started.
- A long-running command merges only when it terminates, unless it calls
Metrics::flush().
Runtimes
Section titled “Runtimes”- Laravel Octane is not tested.
- Redis Cluster is not tested. A phpredis cluster connection is not supported: the merge fails and logs a warning.