From 9399a6b39b4efe5f1e2b65a8b814fb42893b43e3 Mon Sep 17 00:00:00 2001 From: Gareth Dawson Date: Tue, 10 Oct 2023 10:01:12 +0100 Subject: [PATCH] dont track requests on dashboard reload --- src/datasource/tracking.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/datasource/tracking.ts b/src/datasource/tracking.ts index de061abe2..42a51c896 100644 --- a/src/datasource/tracking.ts +++ b/src/datasource/tracking.ts @@ -1,4 +1,4 @@ -import { DataQueryRequest } from '@grafana/data'; +import { CoreApp, DataQueryRequest } from '@grafana/data'; import { ZabbixMetricsQuery } from './types'; import { reportInteraction } from '@grafana/runtime'; import { @@ -12,6 +12,10 @@ import { } from './constants'; export const trackRequest = (request: DataQueryRequest): void => { + if (request.app === CoreApp.Dashboard || request.app === CoreApp.PanelViewer) { + return; + } + request.targets.forEach((target) => { const properties: any = { app: request.app,