import { css } from '@emotion/css'; import React from 'react'; import { DataSourcePluginOptionsEditorProps, GrafanaTheme, updateDatasourcePluginJsonDataOption } from '@grafana/data'; import { DataSourcePicker } from '@grafana/runtime'; import { Button, InlineField, InlineFieldRow, useStyles } from '@grafana/ui'; import { TempoJsonData } from '../datasource'; interface Props extends DataSourcePluginOptionsEditorProps {} export function ServiceGraphSettings({ options, onOptionsChange }: Props) { const styles = useStyles(getStyles); return (

Service Graph

To allow querying service graph data you have to select a Prometheus instance where the data is stored.
updateDatasourcePluginJsonDataOption({ onOptionsChange, options }, 'serviceMap', { datasourceUid: ds.uid, }) } /> {options.jsonData.serviceMap?.datasourceUid ? ( ) : null}
); } const getStyles = (theme: GrafanaTheme) => ({ infoText: css` label: infoText; padding-bottom: ${theme.spacing.md}; color: ${theme.colors.textSemiWeak}; `, row: css` label: row; align-items: baseline; `, });