问题描述
在 influxQL 中,您可以使用多个聚合函数进行查询,如下所示:
SELECT MEAN(value),MIN(value) FROM measurement WHERE category= ...
在 promQl 中,您也可以指定聚合函数,例如 Avg:
Avg by (server) (HttpStatusCodes{category = 'Api.ResponseStatus'})
但我想知道您是否可以像在 influxQL 中一样在 promQl 中执行多个聚合器,如下所示:
Avg,Max by (server) (HttpStatusCodes{category = 'Api.ResponseStatus'})
解决方法
尝试以下 MetricsQL 查询:
C:\Users\yö\PhpstormProjects\BRP>composer require yajra/laravel-oci8:^8
./composer.json has been updated
Running composer update yajra/laravel-oci8
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires yajra/laravel-oci8 8 -> satisfiable by yajra/laravel-oci8[v8.0.0].
- yajra/laravel-oci8 v8.0.0 requires ext-oci8 >=2.0.0 -> it is missing from your system. Install or enable PHP's oci8 extension.
To enable extensions,verify that they are enabled in your .ini files:
- C:\PHP74\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.