feat(config): support openmetrics by allowed clients

Signed-off-by: WrenIX <133280015+wrenix@users.noreply.github.com>
pull/2534/head
WrenIX 4 months ago committed by GitHub
parent 53d81594c8
commit 8309de1760
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,6 @@
<?php
$openmetricsAllowedClients = getenv('OPENMETRICS_ALLOWED_CLIENTS');
if ($openmetricsAllowedClients) {
$CONFIG['openmetrics_allowed_clients'] = array_filter(array_map('trim', explode(',', $openmetricsAllowedClients)));
}
Loading…
Cancel
Save