mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
app/vmui: move the Explore metrics
tab closer to Custom panel
tab
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3386
This commit is contained in:
parent
8579aecd77
commit
8d03a5b1c0
3 changed files with 15 additions and 15 deletions
|
@ -36,6 +36,10 @@ const App: FC = () => {
|
||||||
path={router.home}
|
path={router.home}
|
||||||
element={<CustomPanel/>}
|
element={<CustomPanel/>}
|
||||||
/>
|
/>
|
||||||
|
<Route
|
||||||
|
path={router.metrics}
|
||||||
|
element={<ExploreMetrics/>}
|
||||||
|
/>
|
||||||
<Route
|
<Route
|
||||||
path={router.dashboards}
|
path={router.dashboards}
|
||||||
element={<DashboardsLayout/>}
|
element={<DashboardsLayout/>}
|
||||||
|
@ -52,10 +56,6 @@ const App: FC = () => {
|
||||||
path={router.trace}
|
path={router.trace}
|
||||||
element={<TracePage/>}
|
element={<TracePage/>}
|
||||||
/>
|
/>
|
||||||
<Route
|
|
||||||
path={router.metrics}
|
|
||||||
element={<ExploreMetrics/>}
|
|
||||||
/>
|
|
||||||
<Route
|
<Route
|
||||||
path={router.icons}
|
path={router.icons}
|
||||||
element={<PreviewIcons/>}
|
element={<PreviewIcons/>}
|
||||||
|
|
|
@ -31,6 +31,10 @@ const Header: FC = () => {
|
||||||
label: routerOptions[router.home].title,
|
label: routerOptions[router.home].title,
|
||||||
value: router.home,
|
value: router.home,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: routerOptions[router.metrics].title,
|
||||||
|
value: router.metrics,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: routerOptions[router.dashboards].title,
|
label: routerOptions[router.dashboards].title,
|
||||||
value: router.dashboards,
|
value: router.dashboards,
|
||||||
|
@ -47,10 +51,6 @@ const Header: FC = () => {
|
||||||
{
|
{
|
||||||
label: routerOptions[router.trace].title,
|
label: routerOptions[router.trace].title,
|
||||||
value: router.trace,
|
value: router.trace,
|
||||||
},
|
|
||||||
{
|
|
||||||
label: routerOptions[router.metrics].title,
|
|
||||||
value: router.metrics,
|
|
||||||
}
|
}
|
||||||
]), [appModeEnable]);
|
]), [appModeEnable]);
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
const router = {
|
const router = {
|
||||||
home: "/",
|
home: "/",
|
||||||
|
metrics: "/metrics",
|
||||||
dashboards: "/dashboards",
|
dashboards: "/dashboards",
|
||||||
cardinality: "/cardinality",
|
cardinality: "/cardinality",
|
||||||
topQueries: "/top-queries",
|
topQueries: "/top-queries",
|
||||||
trace: "/trace",
|
trace: "/trace",
|
||||||
metrics: "/metrics",
|
|
||||||
icons: "/icons"
|
icons: "/icons"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -30,6 +30,12 @@ export const routerOptions: {[key: string]: RouterOptions} = {
|
||||||
title: "Custom panel",
|
title: "Custom panel",
|
||||||
...routerOptionsDefault
|
...routerOptionsDefault
|
||||||
},
|
},
|
||||||
|
[router.metrics]: {
|
||||||
|
title: "Explore metrics",
|
||||||
|
header: {
|
||||||
|
timeSelector: true,
|
||||||
|
}
|
||||||
|
},
|
||||||
[router.dashboards]: {
|
[router.dashboards]: {
|
||||||
title: "Dashboards",
|
title: "Dashboards",
|
||||||
...routerOptionsDefault,
|
...routerOptionsDefault,
|
||||||
|
@ -48,12 +54,6 @@ export const routerOptions: {[key: string]: RouterOptions} = {
|
||||||
title: "Trace analyzer",
|
title: "Trace analyzer",
|
||||||
header: {}
|
header: {}
|
||||||
},
|
},
|
||||||
[router.metrics]: {
|
|
||||||
title: "Explore metrics",
|
|
||||||
header: {
|
|
||||||
timeSelector: true,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
[router.icons]: {
|
[router.icons]: {
|
||||||
title: "Icons",
|
title: "Icons",
|
||||||
header: {}
|
header: {}
|
||||||
|
|
Loading…
Reference in a new issue