Skip to content

JSON parser prop values with dash "-" do not work as expected #16817

Open
@gtk-grafana

Description

@gtk-grafana

Describe the bug

This works

{service_name="nginx-json"} | json user_identifier="[\"user-identifier\"]"

But this doesn't:

{service_name="nginx-json"} | json user_identifier="user-identifier"

But any other JSON prop (not containing a dash in the label name) doesn't need the bracket syntax

To Reproduce
Visit the links above.

Expected behavior
Shouldn't need to treat JSON parser prop values any differently just because they have a dash in the label name.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions