dbstudios/prometheus-client
Lightweight Prometheus client for PHP. Create a CollectorRegistry, choose a storage adapter (Redis, Filesystem, APCu), then register and use counters, gauges, and histograms. Retrieve collectors by name with typed helpers for safer access.
FilesystemAdapter::search() was returning every key it contained, instead of just those matching the prefix. Resolves #5 (thanks to @underscore200 for the PR).Histogram (see Histogram::startTimer() and Histogram::time()); requires symfony/stopwatch.$throwOnMissing argument was being ignored for calls to CollectorRegistry::getCounter(), CollectorRegistry::getGauge(), and CollectorRegistry::getHistogram().ApcuAdapter and FilesystemAdapter have been moved to child namespaces under DaybreakStudios\PrometheusClient\Adapter.AdapterInterface::search() has been changed to expect a generator instead of an iterator.2.0.3 wherein lock files would incorrectly be included by FilesystemAdapter::search().FilesystemAdapter::modify() (including calls used internally by FilesystemAdapter::increment() and FilesystemAdapter::decrement()) would not consistently lock the key being modified if many processes attempted to acquire the lock at the same time.FilesystemAdapter::clear() would incorrectly delete dot files in the cache directory.1.0.0.AdapterInterface::compareAndSwap() to AdapterInterface::modify().Gauge values not decoding during Gauge::collect().+Inf bucket not being included during Histogram::collect().Histogram collectors not being decoded during Histogram::collect().FilesystemAdapter.FilesystemAdapter::search() would not consistently match keys.AdapterInterface::clear().FilesystemAdapter.TextRenderer.HELP line text.TextRenderer will now skip any metrics that contain no samples.getCounter(), getGauge() and getHistogram() methods to CollectorRegistryInterface.How can I help you explore Laravel packages today?