cortex icon indicating copy to clipboard operation
cortex copied to clipboard

Unknown Function error for drop_common_labels()

Open khaines opened this issue 8 years ago • 2 comments

With the latest code from the master branch (commit 73a2946), I noticed the drop_common_labels() method no longer works.

The querier instance returns the following error:

{ "status": "error", "errorType": "bad_data", "error": "parse error at char 19: unknown function with name \"drop_common_labels\"", "message": "parse error at char 19: unknown function with name \"drop_common_labels\"" }

This appears true for any expression, such as drop_common_labels(up)

khaines avatar Jan 30 '18 20:01 khaines

This was dropped in Prometheus 2.0, which Cortex is tracking now: https://prometheus.io/docs/prometheus/latest/migration/#promql

tomwilkie avatar Jan 30 '18 20:01 tomwilkie

Thank you Tom. I forgot that detail from the migration guide.

khaines avatar Jan 30 '18 21:01 khaines