diff --git a/bitmovin-analytics-datasource/src/datasource.ts b/bitmovin-analytics-datasource/src/datasource.ts index 6a3caac..2544d83 100644 --- a/bitmovin-analytics-datasource/src/datasource.ts +++ b/bitmovin-analytics-datasource/src/datasource.ts @@ -6,6 +6,7 @@ import { DataSourceApi, DataSourceInstanceSettings, Field, + QueryResultMetaNotice, } from '@grafana/data'; import { getBackendSrv } from '@grafana/runtime'; import { filter } from 'lodash'; @@ -99,6 +100,7 @@ export class DataSource extends DataSourceApi = response.data.data.result.columnLabels; const fields: Array> = []; @@ -125,9 +127,20 @@ export class DataSource extends DataSourceApi= 200) { + metaNotices = [ + { + severity: 'warning', + text: 'Your request reached the max row limit of the API. You might see incomplete data. This problem might be caused by the use of high cardinality columns in group by, too small interval, or too big of a time range.', + }, + ]; + } + return createDataFrame({ name: target.aliasBy, fields: fields, + meta: { notices: metaNotices }, }); });