import React from 'react'; import { FeatureState } from '@grafana/data'; import { InfoBox, FeatureInfoBox } from '@grafana/ui'; import mdx from './InfoBox.mdx'; import { Story } from '@storybook/react'; import { FeatureInfoBoxProps } from './FeatureInfoBox'; import { InfoBoxProps } from './InfoBox'; export default { title: 'Layout/InfoBox', component: InfoBox, decorators: [], parameters: { docs: { page: mdx, }, }, argTypes: { onDismiss: { action: 'Dismissed' }, featureState: { control: { type: 'select', options: ['alpha', 'beta', undefined] }, }, children: { table: { disable: true, }, }, }, }; const defaultProps: FeatureInfoBoxProps = { title: 'A title', severity: 'info', url: 'http://www.grafana.com', featureState: FeatureState.beta, children: (
The database user should only be granted SELECT permissions on the specified database & tables you want to
query. Grafana does not validate that queries are safe so queries can contain any SQL statement. For example,
statements like USE otherdb;
and DROP TABLE user;
would be executed. To protect against
this we Highly recommend you create a specific MySQL user with restricted permissions.