diff --git a/public/app/features/annotations/standardAnnotationSupport.ts b/public/app/features/annotations/standardAnnotationSupport.ts index 743cb79be39..9f1114677bf 100644 --- a/public/app/features/annotations/standardAnnotationSupport.ts +++ b/public/app/features/annotations/standardAnnotationSupport.ts @@ -236,7 +236,9 @@ export function getAnnotationsFromData( */ export function shouldUseMappingUI(datasource: DataSourceApi): boolean { const { type } = datasource; - return type !== 'prometheus' && type !== 'elasticsearch' && type !== 'loki'; + return ( + type !== 'prometheus' && type !== 'elasticsearch' && type !== 'loki' && type !== 'grafana-opensearch-datasource' + ); } /** @@ -244,5 +246,7 @@ export function shouldUseMappingUI(datasource: DataSourceApi): boolean { */ export function shouldUseLegacyRunner(datasource: DataSourceApi): boolean { const { type } = datasource; - return type === 'prometheus' || type === 'elasticsearch' || type === 'loki'; + return ( + type === 'prometheus' || type === 'elasticsearch' || type === 'loki' || type === 'grafana-opensearch-datasource' + ); }