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 upMake "range vector" and "matrix" terminology consistent #2196
Comments
This comment has been minimized.
This comment has been minimized.
|
I can look at updating some error messages. I think replacing "vector" with "instant vector", and "matrix" with "range vector", would be OK? |
This comment has been minimized.
This comment has been minimized.
|
That touches ancient Prometheus history, so I'd say @juliusv should comment on it. |
This comment has been minimized.
This comment has been minimized.
|
Renaming as you suggest makes sense. The older terminology is a holdover from Borgmon. |
This comment has been minimized.
This comment has been minimized.
|
We also call it matrix / vector in the API though: https://prometheus.io/docs/querying/api/#expression-query-result-formats So the inconsistency there would have to remain unfortunately. |
This comment has been minimized.
This comment has been minimized.
|
Initial attempt in #2197 |
This comment has been minimized.
This comment has been minimized.
|
#2197 was merged |
tcolgate
closed this
Nov 21, 2016
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. |
tcolgate commentedNov 17, 2016
What did you do?
make an error in a query where a function expects a range vector, but you just give it an instant vector
What did you expect to see?
An error that refers to requiring a range vector
What did you see instead? Under which circumstances?
An error that refers to a "matrix"
The documentation doesn't really ever refer to Prometheus supporting a "matrix" type, but the errors do. Equally, some errors state that a "vector" has been required where a "matrix" is expected, yet the docs refer to instant vectors and range vectors (so both are vectors, by the wording in the docs).
It would be nice if the terminology was consistent between the two.