This commit is contained in:
2020-06-01 17:46:53 +00:00
parent 430efb7102
commit 84ec09a2b2
6 changed files with 33 additions and 12 deletions

View File

@@ -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) {

View File

@@ -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"),

View File

@@ -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",

View File

@@ -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>

View File

@@ -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: [