Registry / observability / jimdo-prometheus-client-php

jimdo-prometheus-client-php

JSON →
library0.9.1phppackagistunverified

Prometheus client library for PHP.

composer require jimdo/prometheus_client_php
INSTALL
IMPORT
SIG · JIMDO-PROMETHEUS-C
J
jimdo-prometheus-client-php
observabilityphpv0.9.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CollectorRegistry
use Prometheus\CollectorRegistry;

Create and increment a Prometheus counter.

use Prometheus\CollectorRegistry; use Prometheus\Storage\InMemory; $registry = new CollectorRegistry(new InMemory()); $counter = $registry->registerCounter('test', 'some_counter', 'it increases', ['type']); $counter->incBy(1, ['blue']);
Debug
Known issues
gotchaIn-memory storage is not persistent; use Redis or APCu for production.
fix
Use Prometheus\Storage\Redis or APCu adapter.
affects: *
Upgrade
Version history
0.9.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
jimdo-prometheus-client-php — pip install jimdo-prometheus-client-php · libregistry