Skip to content

Commit

Permalink
Merge branch 'master' of github.com:yunlzheng/prometheus-book
Browse files Browse the repository at this point in the history
  • Loading branch information
yunlzheng committed Oct 9, 2018
2 parents ac6e1c6 + 211a997 commit 915e391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions promql/prometheus-promql-operators-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
例如,我们可以通过指标node_memory_free_bytes_total获取当前主机可用的内存空间大小,其样本单位为Bytes。这是如果客户端要求使用MB作为单位响应数据,那只需要将查询到的时间序列的样本值进行单位换算即可:

```
node_memory_free_bytes_total / 1024
node_memory_free_bytes_total / (1024 * 1024)
```

node_memory_free_bytes_total表达式会查询出所有满足表达式条件的时间序列,在上一小节中我们称该表达式为瞬时向量表达式,而返回的结果成为瞬时向量。
Expand Down Expand Up @@ -204,4 +204,4 @@ method_code:http_errors:rate5m / ignoring(code) group_left method:http_requests:
{method="post", code="404"} 0.175 // 21 / 120
```

> 提醒:group修饰符只能在比较和数学运算符中使用。在逻辑运算and,unless和or才注意操作中默认与右向量中的所有元素进行匹配。
> 提醒:group修饰符只能在比较和数学运算符中使用。在逻辑运算and,unless和or才注意操作中默认与右向量中的所有元素进行匹配。

0 comments on commit 915e391

Please sign in to comment.