Cannot create metric view when there's a tag with key `series`
alejandrodnm opened this issue · 1 comments
alejandrodnm commented
When creating the view for a metric the following function is called with the label_key
as argument:
The label_key
is checked against some reserved keys, if there's a match then the key is prepended with label_
:
promscale_extension/migration/idempotent/001-base.sql
Lines 2433 to 2438 in 9db8b90
If the key is series
it won't match series_id
and pass the check. The problem is that if the key is an id
(second parameter of the function) we call:
Which returns series_id
and creates the conflict:
alejandrodnm commented
This was reported by one of our users timescale/promscale#1685