mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
69 lines
2.8 KiB
TypeScript
69 lines
2.8 KiB
TypeScript
import { css } from '@emotion/css';
|
||
|
||
import { GrafanaTheme2 } from '@grafana/data';
|
||
import { Box, Stack, TextLink, useStyles2 } from '@grafana/ui';
|
||
import { t, Trans } from 'app/core/internationalization';
|
||
|
||
import { InfoItem } from '../../shared/InfoItem';
|
||
|
||
export const MigrationStepsPane = () => {
|
||
const styles = useStyles2(getStyles);
|
||
|
||
return (
|
||
<Box alignItems="flex-start" display="flex" direction="column" gap={2}>
|
||
<InfoItem
|
||
title={t('migrate-to-cloud.get-started.title', 'Performing a migration')}
|
||
linkTitle={t('migrate-to-cloud.get-started.link-title', 'Learn more about Private Data Source Connect')}
|
||
linkHref="https://grafana.com/docs/grafana-cloud/connect-externally-hosted/private-data-source-connect"
|
||
>
|
||
<Stack direction="column" gap={2}>
|
||
<Trans i18nKey="migrate-to-cloud.get-started.body">
|
||
The migration process must be started from your self-managed Grafana instance.
|
||
</Trans>
|
||
<ol className={styles.list}>
|
||
<li>
|
||
<Trans i18nKey="migrate-to-cloud.get-started.step-1">
|
||
Log in to your self-managed instance and navigate to Administration, General, Migrate to Grafana Cloud.
|
||
</Trans>
|
||
</li>
|
||
<li>
|
||
<Trans i18nKey="migrate-to-cloud.get-started.step-2">
|
||
Select "Migrate this instance to Cloud".
|
||
</Trans>
|
||
</li>
|
||
<li>
|
||
<Trans i18nKey="migrate-to-cloud.get-started.step-3">
|
||
You'll be prompted for a migration token. Generate one from this screen.
|
||
</Trans>
|
||
</li>
|
||
<li>
|
||
<Trans i18nKey="migrate-to-cloud.get-started.step-4">
|
||
In your self-managed instance, select "Upload everything" to upload data sources and
|
||
dashboards to this cloud stack.
|
||
</Trans>
|
||
</li>
|
||
<li>
|
||
<Trans i18nKey="migrate-to-cloud.get-started.step-5">
|
||
If some of your data sources will not work over the public internet, you’ll need to install Private Data
|
||
Source Connect in your self-managed environment.
|
||
</Trans>
|
||
</li>
|
||
</ol>
|
||
</Stack>
|
||
</InfoItem>
|
||
<TextLink href="/connections/private-data-source-connections">
|
||
{t('migrate-to-cloud.get-started.configure-pdc-link', 'Configure PDC for this stack')}
|
||
</TextLink>
|
||
<TextLink href="https://grafana.com/docs/grafana-cloud/account-management/migration-guide">
|
||
{t('migrate-to-cloud.migrate-to-this-stack.link-title', 'View the full migration guide')}
|
||
</TextLink>
|
||
</Box>
|
||
);
|
||
};
|
||
|
||
const getStyles = (theme: GrafanaTheme2) => ({
|
||
list: css({
|
||
padding: 'revert',
|
||
}),
|
||
});
|