diff --git a/dashboard/src2/components/server/ServerCharts.vue b/dashboard/src2/components/server/ServerCharts.vue index 33566975ea..936346d15d 100644 --- a/dashboard/src2/components/server/ServerCharts.vue +++ b/dashboard/src2/components/server/ServerCharts.vue @@ -320,8 +320,14 @@ + - - - - + - - - - @@ -411,6 +387,8 @@ export default { duration: '1 Hour', showAdvancedAnalytics: false, localTimezone: dayjs.tz.guess(), + slowLogsDurationType: 'Non-normalized', + slowLogsFrequencyType: 'Non-normalized', chosenServer: this.$route.query.server ?? this.serverName, durationOptions: ['1 Hour', '6 Hour', '24 Hour', '7 Days', '15 Days'], chartColors: [ @@ -542,7 +520,8 @@ export default { name: this.chosenServer, query: 'count', timezone: this.localTimezone, - duration: this.duration + duration: this.duration, + normalize: this.slowLogsFrequencyType === 'Normalized' }, auto: this.showAdvancedAnalytics && !this.isServerType('Application Server') @@ -563,19 +542,6 @@ export default { }; }, slowLogsDuration() { - return { - url: 'press.api.server.get_slow_logs_by_site', - params: { - name: this.chosenServer, - query: 'duration', - timezone: this.localTimezone, - duration: this.duration - }, - auto: - this.showAdvancedAnalytics && !this.isServerType('Application Server') - }; - }, - normalizedSlowLogsDuration() { return { url: 'press.api.server.get_slow_logs_by_site', params: { @@ -583,7 +549,7 @@ export default { query: 'duration', timezone: this.localTimezone, duration: this.duration, - normalize: true + normalize: this.slowLogsDurationType === 'Normalized' }, auto: this.showAdvancedAnalytics && !this.isServerType('Application Server') @@ -765,18 +731,6 @@ export default { return slowLogs; }, - normalizedSlowLogsDurationData() { - const slowLogs = this.$resources.normalizedSlowLogsDuration.data; - if (!slowLogs) return; - - return slowLogs; - }, - normalizedSlowLogsCountData() { - const slowLogs = this.$resources.normalizedSlowLogsCount.data; - if (!slowLogs) return; - - return slowLogs; - }, databaseUptimeData() { const uptime = this.$resources.databaseUptime.data; if (!uptime) return;