React UI: Add /tsdb-status to React-handled routes (#6313)

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2019-11-20 15:50:52 +01:00 committed by GitHub
parent 3e3b7ceb0b
commit d2cb05846b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,10 @@ const App: FC<PathPrefixProps> = ({ pathPrefix }) => {
<Router basepath={`${pathPrefix}/new`}>
<Redirect from="/" to={`${pathPrefix}/new/graph`} />
{/*
NOTE: Any route added here needs to also be added to the list of
React-handled router paths ("reactRouterPaths") in /web/web.go.
*/}
<PanelList path="/graph" pathPrefix={pathPrefix} />
<Alerts path="/alerts" pathPrefix={pathPrefix} />
<Config path="/config" pathPrefix={pathPrefix} />

View File

@ -84,6 +84,7 @@ var (
"/service-discovery",
"/status",
"/targets",
"/tsdb-status",
"/version",
}
)