mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Live: support legacy stream paths (#33101)
This commit is contained in:
parent
76034ad1cb
commit
0c64d88d64
@ -30,7 +30,15 @@ export class GrafanaDatasource extends DataSourceApi<GrafanaQuery> {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (target.queryType === GrafanaQueryType.LiveMeasurements) {
|
if (target.queryType === GrafanaQueryType.LiveMeasurements) {
|
||||||
const { channel, filter } = target;
|
let { channel, filter } = target;
|
||||||
|
|
||||||
|
// Help migrate pre-release channel paths saved in dashboards
|
||||||
|
// NOTE: this should be removed before V8 is released
|
||||||
|
if (channel && channel.startsWith('telegraf/')) {
|
||||||
|
channel = 'stream/' + channel;
|
||||||
|
target.channel = channel; // mutate the current query object so it is saved with `stream/` prefix
|
||||||
|
}
|
||||||
|
|
||||||
const addr = parseLiveChannelAddress(channel);
|
const addr = parseLiveChannelAddress(channel);
|
||||||
if (!isValidLiveChannelAddress(addr)) {
|
if (!isValidLiveChannelAddress(addr)) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user