grafana / explore-logs

Repo for the Loki log exploration app
GNU Affero General Public License v3.0
302 stars 14 forks source link

Link extensions: Query is not making it into explore logs #769

Closed gtk-grafana closed 1 month ago

gtk-grafana commented 1 month ago

Also we need an e2e test for this

Image

Returns this URL:

https://ops.grafana-ops.net/a/grafana-lokiexplore-app/explore/service/grafana/grafana/logs?schemaVersion=1&panes={"9j5":{"datasource":"OP27Xzxnk","queries":[{"refId":"logs","expr":"{service_name=`grafana/grafana`}+|+json+|+logfmt+|+drop+__error__,+__error_details__","datasource":{"type":"loki","uid":"OP27Xzxnk"}}],"range":{"from":"now-15m","to":"now"}}}&orgId=1&var-ds=OP27Xzxnk&from=now-15m&to=now&var-filters=service_name|=|grafana/grafana&uel_pid=grafana-lokiexplore-app&uel_epid=grafana/explore/toolbar/action

Which does not parse properly and the user is redirected to the service selection

gtk-grafana commented 1 month ago

Looks like it's just a bug when the service name contains a slash /