Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Prometheus Client Laravel Package

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.

View on GitHub
Deep Wiki
Context7
3.0.1

Changelog

  • Fixed a bug wherein FilesystemAdapter::search() was returning every key it contained, instead of just those matching the prefix. Resolves #5 (thanks to @underscore200 for the PR).
3.0.0

Changelog

  • Bumped required PHP version to 7.3.
  • Added support for using Redis to store Prometheus data.
  • Added support for in-memory metric storage (for testing and debugging purposes).
  • Added timing utility functions to Histogram (see Histogram::startTimer() and Histogram::time()); requires symfony/stopwatch.
  • Fixed a bug wherein the $throwOnMissing argument was being ignored for calls to CollectorRegistry::getCounter(), CollectorRegistry::getGauge(), and CollectorRegistry::getHistogram().

Breaking Changes

  • PHP versions before 7.3 are no longer supported.
  • The ApcuAdapter and FilesystemAdapter have been moved to child namespaces under DaybreakStudios\PrometheusClient\Adapter.
  • The return signature for AdapterInterface::search() has been changed to expect a generator instead of an iterator.
2.0.4

Changelog

  • Fixed a bug introduced by 2.0.3 wherein lock files would incorrectly be included by FilesystemAdapter::search().
2.0.3

Changelog

  • Fixed a bug wherein calls to 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.
2.0.2

Changelog

  • Fixed an issue wherein FilesystemAdapter::clear() would incorrectly delete dot files in the cache directory.
2.0.1

Changelog

  • Fixed an issue wherein bucket keys with a fractional value would not be found during collection.
2.0.0

Changelog

  • Moved special value encoding into adapters, instead of relying on collectors to properly handle all cases.
1.0.0

Changelog

  • Initial release of 1.0.0.
0.4.0

Changelog

  • Renamed AdapterInterface::compareAndSwap() to AdapterInterface::modify().
  • Improved many PHPDoc blocks.
0.3.3

Changelog

  • Fixed Gauge values not decoding during Gauge::collect().
  • Fixed the +Inf bucket not being included during Histogram::collect().
  • Fixed the sum value for Histogram collectors not being decoded during Histogram::collect().
0.3.2

Changelog

  • Fixed an issue wherein keys were not being encoded as file names properly in FilesystemAdapter.
  • Fixed an issue wherein FilesystemAdapter::search() would not consistently match keys.
0.3.1

Changelog

  • Added AdapterInterface::clear().
0.3.0

Changelog

  • Refactored APCU adapter to use milliseconds instead of fractional seconds for CAS timeout.
  • Added FilesystemAdapter.
0.2.3

Changelog

  • Fixed an issue wherein values were not being output for collectors when using the TextRenderer.
0.2.2

Changelog

  • Fixed an issue where labels were being decoded to objects instead of associative arrays.
0.2.1

Changelog

  • Removed curly brackets around HELP line text.
  • TextRenderer will now skip any metrics that contain no samples.
0.2.0

Changelog

  • Added getCounter(), getGauge() and getHistogram() methods to CollectorRegistryInterface.
0.1.0

Changelog

  • Initial test release.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky