import React from 'react'; import { useAsync } from 'react-use'; import { getBackendSrv } from '@grafana/runtime'; import { Page } from 'app/core/components/Page/Page'; type Settings = { [key: string]: { [key: string]: string } }; function AdminSettings() { const { loading, value: settings } = useAsync(() => getBackendSrv().get('/api/admin/settings'), []); return (
These system settings are defined in grafana.ini or custom.ini (or overridden in ENV variables). To change these you currently need to restart Grafana.
{settings && ( {Object.entries(settings).map(([sectionName, sectionSettings], i) => ( {Object.entries(sectionSettings).map(([settingName, settingValue], j) => ( ))} ))}
{sectionName}
{settingName} {settingValue}
)}
); } export default AdminSettings;