Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 Redis 存储指标时报错 #16

Open
JentXiezzz opened this issue May 20, 2024 · 0 comments
Open

使用 Redis 存储指标时报错 #16

JentXiezzz opened this issue May 20, 2024 · 0 comments

Comments

@JentXiezzz
Copy link

在config/autoload/dependencies.php 中更换为 Redis 存储:

return [
    Prometheus\Storage\Adapter::class => Hyperf\Metric\Adapter\Prometheus\RedisStorageFactory::class,
];

启动框架报错:
PHP Fatal error: Class Hyperf\Metric\Adapter\Prometheus\Redis contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Prometheus\Storage\Adapter::updateSummary) in /srv/hyperf/vendor/hyperf/metric/src/Adapter/Prometheus/Redis.php on line 24

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

No branches or pull requests

1 participant