Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upUsing operators with aggregation values #969
Comments
This comment has been minimized.
This comment has been minimized.
|
You are aggregating away all labels but Vector matching docs: http://prometheus.io/docs/querying/operators/#vector-matching If and how you can modify the matching behavior depends on the shape of your data.
|
This comment has been minimized.
This comment has been minimized.
|
Ah ok, group_left and group_right were what I was missing. That clarifies things a lot. |
This comment has been minimized.
This comment has been minimized.
|
Cool, closing here then. |
fabxc
closed this
Aug 7, 2015
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
wrouesnel commentedAug 7, 2015
It seems like there's some missing functionality with aggregations and operators. Something like this:
node_load1 - (sum(node_load1) by (job) / count(node_load1) by (job))would be part of calculating the deviation of load by jobs. But instead prometheus returns no data when you run it.
It's not intuitive to me why: the result is a bunch of vectors labelled as jobs containing the average. If I then ask to subtract that from node_load1, the operation seems like it should be to match all labels by job and do the subtraction between the vectors, resulting in a bunch of (in this case) instance vectors.