2019-10-31 10:48:05 +01:00
|
|
|
import { DataSourceSettings } from '@grafana/data';
|
2019-10-25 16:43:20 +02:00
|
|
|
import { ElasticsearchOptions } from '../types';
|
|
|
|
|
import { createDatasourceSettings } from '../../../../features/datasources/mocks';
|
|
|
|
|
|
|
|
|
|
export function createDefaultConfigOptions(): DataSourceSettings<ElasticsearchOptions> {
|
|
|
|
|
return createDatasourceSettings<ElasticsearchOptions>({
|
|
|
|
|
timeField: '@time',
|
2021-05-11 09:44:00 +01:00
|
|
|
esVersion: '7.0.0',
|
2019-10-25 16:43:20 +02:00
|
|
|
interval: 'Hourly',
|
|
|
|
|
timeInterval: '10s',
|
|
|
|
|
maxConcurrentShardRequests: 300,
|
|
|
|
|
logMessageField: 'test.message',
|
|
|
|
|
logLevelField: 'test.level',
|
|
|
|
|
});
|
|
|
|
|
}
|