使用普罗米修斯的这两个表达式有什么区别?

What is the difference between these 2 expression using Prometheus?

我实际上正在阅读一些使用 Prometheus 的指南,但我不确定某些事情。

name=~".+" --> take all the names

但是当我读完 https://prometheus.io/docs/querying/operators/ 我刚看到:

+ (addition)
- (subtraction)
* (multiplication)
/ (division)
% (modulo)
^ (power/exponentiation)

所以我不明白如何首先查询可以 select 所有 name 尽管运算符是加法。

它们是语言的两个不同部分,=~ 是在大括号内使用的标签选择器。其他都是常用的算术运算符。