endclothing / prometheus_client_php

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

Allow overriding prefix via constructor #40

Open ikari7789 opened 4 years ago

ikari7789 commented 4 years ago

Initialize the prefix as part of the constructor and allow it to be set via the options. Eases ability to set a custom prefix as most users are not likely interacting with the Redis object directly, but rather sending in an options array via a higher-level loader.