Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

wrong example #8

Open
mercoglianoisidoro opened this issue Feb 20, 2019 · 1 comment
Open

wrong example #8

mercoglianoisidoro opened this issue Feb 20, 2019 · 1 comment

Comments

@mercoglianoisidoro
Copy link

Hello,
you example is not good:

$registry = new CollectorRegistry(new ApcuAdapter());
$registry->createCounter('requests', [], null, true);
$registry->createGauge('traffic', ['endpoint'], 'Active traffic per endpoint', true);

Second line should be:
$registry->createCounter('requests', [], null);

Regards,
Isidoro.

@Arvi89
Copy link

Arvi89 commented Feb 27, 2019

Actually it should be:
$registry->createCounter('requests', [], null, 'prefix', true);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants