promQL 查询中可以有多个聚合器吗

问题描述

在 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.

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...