+ {value && value.length > 0 && (
+
+ {value.map((field, index) => {
+ return (
+ {
+ const newDataLinks = [...value];
+ newDataLinks.splice(index, 1, newField);
+ onChange(newDataLinks);
+ }}
+ onDelete={() => {
+ const newDataLinks = [...value];
+ newDataLinks.splice(index, 1);
+ onChange(newDataLinks);
+ }}
+ suggestions={[
+ {
+ value: DataLinkBuiltInVars.valueRaw,
+ label: 'Raw value',
+ documentation: 'Raw value of the field',
+ origin: VariableOrigin.Value,
+ },
+ ]}
+ />
+ );
+ })}
+
+ )}
-
- Add links to existing fields. Links will be shown in log row details next to the field value.
+
-
- {value && value.length > 0 && (
-
- {value.map((field, index) => {
- return (
- {
- const newDataLinks = [...value];
- newDataLinks.splice(index, 1, newField);
- onChange(newDataLinks);
- }}
- onDelete={() => {
- const newDataLinks = [...value];
- newDataLinks.splice(index, 1);
- onChange(newDataLinks);
- }}
- suggestions={[
- {
- value: DataLinkBuiltInVars.valueRaw,
- label: 'Raw value',
- documentation: 'Raw value of the field',
- origin: VariableOrigin.Value,
- },
- ]}
- />
- );
- })}
-
- )}
-
-
- >
+
);
};
diff --git a/public/app/plugins/datasource/elasticsearch/configuration/ElasticDetails.tsx b/public/app/plugins/datasource/elasticsearch/configuration/ElasticDetails.tsx
index e745fcc118a..b5a2d596382 100644
--- a/public/app/plugins/datasource/elasticsearch/configuration/ElasticDetails.tsx
+++ b/public/app/plugins/datasource/elasticsearch/configuration/ElasticDetails.tsx
@@ -1,7 +1,9 @@
import React from 'react';
import { DataSourceSettings, SelectableValue } from '@grafana/data';
-import { FieldSet, InlineField, Input, Select, InlineSwitch } from '@grafana/ui';
+import { ConfigSubSection } from '@grafana/experimental';
+import { InlineField, Input, Select, InlineSwitch } from '@grafana/ui';
+import { ConfigDescriptionLink } from 'app/core/components/ConfigDescriptionLink';
import { ElasticsearchOptions, Interval } from '../types';
@@ -20,92 +22,99 @@ type Props = {
};
export const ElasticDetails = ({ value, onChange }: Props) => {
return (
- <>
-
- >
+ )}
+
);
};
diff --git a/public/app/plugins/datasource/elasticsearch/configuration/LogsConfig.tsx b/public/app/plugins/datasource/elasticsearch/configuration/LogsConfig.tsx
index 3f5d64038bf..95ec6036bba 100644
--- a/public/app/plugins/datasource/elasticsearch/configuration/LogsConfig.tsx
+++ b/public/app/plugins/datasource/elasticsearch/configuration/LogsConfig.tsx
@@ -1,6 +1,8 @@
import React from 'react';
-import { Input, InlineField, FieldSet } from '@grafana/ui';
+import { ConfigSubSection } from '@grafana/experimental';
+import { Input, InlineField } from '@grafana/ui';
+import { ConfigDescriptionLink } from 'app/core/components/ConfigDescriptionLink';
import { ElasticsearchOptions } from '../types';
@@ -19,7 +21,16 @@ export const LogsConfig = (props: Props) => {
};
return (
-
+
);
};