add unit tests

This commit is contained in:
Matthew Goslett 2017-07-27 14:11:46 +02:00
parent 00cb369d0b
commit 9c2453f0e4
8 changed files with 508 additions and 22 deletions

View file

@ -150,7 +150,7 @@ $counter = $exporter->getGauge('users_online_total');
// create a histogram
$histogram = $exporter->registerHistogram(
'response_time_seconds',
'The response time of a request',
'The response time of a request.',
[],
[0.1, 0.25, 0.5, 0.75, 1.0, 2.5, 5.0, 7.5, 10.0]
);
@ -161,7 +161,7 @@ $histogram->obeserve(5.0);
// create a histogram (with labels)
$histogram = $exporter->registerHistogram(
'response_time_seconds',
'The response time of a request',
'The response time of a request.',
['request_type'],
[0.1, 0.25, 0.5, 0.75, 1.0, 2.5, 5.0, 7.5, 10.0]
);