This commit is contained in:
@@ -272,6 +272,13 @@ export default {
|
||||
return window.$gz.store.state.apiUrl + apiPath;
|
||||
},
|
||||
/////////////////////////////
|
||||
// Just the server itself
|
||||
// used by profiler etc
|
||||
//
|
||||
ServerBaseUrl() {
|
||||
return window.$gz.store.state.helpUrl.replace("/docs/", "/");
|
||||
},
|
||||
/////////////////////////////
|
||||
// backup file download URL
|
||||
//
|
||||
backupDownloadUrl(fileName) {
|
||||
|
||||
@@ -656,6 +656,14 @@ export default function initialize() {
|
||||
key: key++
|
||||
});
|
||||
|
||||
//PROFILE
|
||||
sub.push({
|
||||
title: t("ServerProfile"),
|
||||
icon: "fa-binoculars",
|
||||
route: "/ops-profile",
|
||||
key: key++
|
||||
});
|
||||
|
||||
//NOTIFICATION CONFIG AND HISTORY
|
||||
sub.push({
|
||||
title: t("NotificationSettings"),
|
||||
|
||||
@@ -373,6 +373,12 @@ export default new Router({
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "ops" */ "./views/ops-metrics.vue")
|
||||
},
|
||||
{
|
||||
path: "/ops-profile",
|
||||
name: "ops-profile",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "ops" */ "./views/ops-profile.vue")
|
||||
},
|
||||
|
||||
{
|
||||
path: "/ops-notification-settings",
|
||||
|
||||
@@ -24,11 +24,6 @@
|
||||
>
|
||||
<pre>{{ log }}</pre>
|
||||
</v-card>
|
||||
<!-- <v-card-actions>
|
||||
<v-btn @click="getDataFromApi">
|
||||
<v-icon>fa-sync</v-icon>
|
||||
</v-btn>
|
||||
</v-card-actions> -->
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
@click:append-outer="getDataFromApi"
|
||||
@input="timePeriodChanged"
|
||||
></v-select>
|
||||
<!-- <v-btn @click="getDataFromApi">
|
||||
<v-icon>fa-sync</v-icon>
|
||||
</v-btn> -->
|
||||
</v-col>
|
||||
|
||||
<v-tabs v-model="tab" color="primary" grow @change="tabChanged">
|
||||
@@ -22,7 +19,9 @@
|
||||
<v-tab>storage</v-tab>
|
||||
<v-tab>cpu & memory</v-tab>
|
||||
<v-tabs-items v-model="tab">
|
||||
<v-tab-item>{{ routes }} </v-tab-item>
|
||||
<v-tab-item
|
||||
><iframe style="width:100%;height:100%" :src="profileUrl"></iframe>
|
||||
</v-tab-item>
|
||||
<v-tab-item>
|
||||
<v-col cols="12" class="my-1">
|
||||
<v-sheet elevation="4">
|
||||
@@ -275,6 +274,14 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
profileUrl() {
|
||||
// "http://localhost:7575/profiler/results-index?t=l47NWWuZo89MU1GuHV/tYY0d2xwsFrY/K5MZb1zTTvY";
|
||||
return (
|
||||
window.$gz.api.ServerBaseUrl() +
|
||||
"profiler/results-index?t=" +
|
||||
this.$store.state.downloadToken
|
||||
);
|
||||
},
|
||||
cpuChartData() {
|
||||
return {
|
||||
datasets: [
|
||||
|
||||
Reference in New Issue
Block a user