Files
grafana/public/app/features/alerting/unified/utils/config.ts
2021-04-07 08:42:43 +03:00

7 lines
263 B
TypeScript

import { DataSourceInstanceSettings, DataSourceJsonData } from '@grafana/data';
import { config } from '@grafana/runtime';
export function getAllDataSources(): Array<DataSourceInstanceSettings<DataSourceJsonData>> {
return Object.values(config.datasources);
}