PromQL aggregation expressions use by or without and require the aggregated vector expression in parentheses. Therefore, the expressions using max ... up without parentheses are invalid, and on cannot be used as an aggregation modifier because it is reserved for binary vector matching.
Community Discussion