Jimdo / prometheus_client_php

Prometheus instrumentation library for PHP applications
https://prometheus.io/docs/concepts/metric_types/
Apache License 2.0
281 stars 213 forks source link

Add getOrRegister methods #32

Closed seiffert closed 7 years ago

seiffert commented 7 years ago

In order to make metric registration more convenient, this PR adds methods that try to register a metric if it isn't yet.

seiffert commented 7 years ago

PTAL @bracki @fstehle

seiffert commented 7 years ago

@bracki done: PTAL again