mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix links to logql docs (#29037)
This commit is contained in:
@@ -114,7 +114,7 @@ export default class LokiCheatSheet extends PureComponent<ExploreStartPageProps,
|
||||
{this.renderExpression('{app="cassandra"} |= "exact match"')}
|
||||
{this.renderExpression('{app="cassandra"} != "do not match"')}
|
||||
<div className="cheat-sheet-item__label">
|
||||
<a href="https://github.com/grafana/loki/blob/master/docs/logql.md#filter-expression" target="logql">
|
||||
<a href="https://grafana.com/docs/loki/latest/logql/#log-pipeline" target="logql">
|
||||
LogQL
|
||||
</a>{' '}
|
||||
supports exact and regular expression filters.
|
||||
|
||||
@@ -276,7 +276,7 @@ describe('LokiDatasource', () => {
|
||||
observable: ds.query(options),
|
||||
expect: err => {
|
||||
expect(err.data.message).toBe(
|
||||
'Error: parse error at line 1, col 6: invalid char escape. Make sure that all special characters are escaped with \\. For more information on escaping of special characters visit LogQL documentation at https://github.com/grafana/loki/blob/master/docs/logql.md.'
|
||||
'Error: parse error at line 1, col 6: invalid char escape. Make sure that all special characters are escaped with \\. For more information on escaping of special characters visit LogQL documentation at https://grafana.com/docs/loki/latest/logql/.'
|
||||
);
|
||||
},
|
||||
done,
|
||||
|
||||
@@ -520,7 +520,7 @@ export class LokiDatasource extends DataSourceApi<LokiQuery, LokiOptions> {
|
||||
processError(err: FetchError, target: LokiQuery) {
|
||||
let error = cloneDeep(err);
|
||||
if (err.data.message.includes('escape') && target.expr.includes('\\')) {
|
||||
error.data.message = `Error: ${err.data.message}. Make sure that all special characters are escaped with \\. For more information on escaping of special characters visit LogQL documentation at https://github.com/grafana/loki/blob/master/docs/logql.md.`;
|
||||
error.data.message = `Error: ${err.data.message}. Make sure that all special characters are escaped with \\. For more information on escaping of special characters visit LogQL documentation at https://grafana.com/docs/loki/latest/logql/.`;
|
||||
}
|
||||
return error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user