+
{JSON.stringify(status, null, 2)}
+ {status.state !== 'running' &&
}
+ {status.state !== 'stopped' && (
+
+ )}
+
+ );
+};
+
+const getStyles = (theme: GrafanaTheme2) => {
+ return {
+ wrap: css`
+ border: 4px solid red;
+ `,
+ running: css`
+ border: 4px solid green;
+ `,
+ };
+};
diff --git a/public/app/features/admin/ServerStats.tsx b/public/app/features/admin/ServerStats.tsx
index d34077afc7e..8a15746336d 100644
--- a/public/app/features/admin/ServerStats.tsx
+++ b/public/app/features/admin/ServerStats.tsx
@@ -6,6 +6,8 @@ import { AccessControlAction } from 'app/types';
import { getServerStats, ServerStat } from './state/apis';
import { contextSrv } from '../../core/services/context_srv';
import { Loader } from '../plugins/admin/components/Loader';
+import { config } from '@grafana/runtime';
+import { CrawlerStatus } from './CrawlerStatus';
export const ServerStats = () => {
const [stats, setStats] = useState