From 097bf94466c2edb6690da628ddfb3d4f08161990 Mon Sep 17 00:00:00 2001 From: Aleksandr Malyshev Date: Tue, 12 Mar 2024 22:38:25 +0300 Subject: [PATCH] [PLAT-12758] Undo 1 minute PSS retrieval + fix graph start/end times Summary: I accidentally changed pg_stat_statement retrieval period from 10 mins to 1 min. Undid that. Also, I've made cahnges in graph start/end time calculation logic to be more reasonable for short anomalies. Test Plan: unit tested Reviewers: cdavid, rmadhavan Reviewed By: rmadhavan Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D33083 --- .../service/anomaly/AnomalyDetectorBase.java | 32 +- .../src/main/resources/application.properties | 4 +- .../anomaly/query_latency/anomalies.json | 16 +- .../query/outlier_nodes_pss_response.json | 1022 +++-------------- .../resources/query/overall_pss_response.json | 422 ++----- 5 files changed, 240 insertions(+), 1256 deletions(-) diff --git a/troubleshoot/backend/src/main/java/com/yugabyte/troubleshoot/ts/service/anomaly/AnomalyDetectorBase.java b/troubleshoot/backend/src/main/java/com/yugabyte/troubleshoot/ts/service/anomaly/AnomalyDetectorBase.java index 1e03c0bd0d3c..ca8bc2b4461f 100644 --- a/troubleshoot/backend/src/main/java/com/yugabyte/troubleshoot/ts/service/anomaly/AnomalyDetectorBase.java +++ b/troubleshoot/backend/src/main/java/com/yugabyte/troubleshoot/ts/service/anomaly/AnomalyDetectorBase.java @@ -32,12 +32,9 @@ protected AnomalyDetectorBase( } protected Pair calculateGraphStartEndTime( - Instant detectionStartTime, - Instant detectionEndTime, - Instant anomalyStartTime, - Instant anomalyEndTime) { - long startTime = detectionStartTime.getEpochSecond(); - long endTime = detectionEndTime.getEpochSecond(); + AnomalyDetectionContext context, Instant anomalyStartTime, Instant anomalyEndTime) { + long startTime = context.getStartTime().getEpochSecond(); + long endTime = context.getEndTime().getEpochSecond(); long effectiveAnomalyStartTime = anomalyStartTime != null ? anomalyStartTime.getEpochSecond() : startTime; @@ -45,15 +42,23 @@ protected Pair calculateGraphStartEndTime( anomalyEndTime != null ? anomalyEndTime.getEpochSecond() : endTime; long anomalyMiddle = (effectiveAnomalyStartTime + effectiveAnomalyEndTime) / 2; long anomalySize = effectiveAnomalyEndTime - effectiveAnomalyStartTime; - long anomalyBasedStartTime = anomalyMiddle - anomalySize * 2; - long anomalyBasedEndTime = anomalyMiddle + anomalySize * 2; + long anomalySizeBasedStartTime = anomalyMiddle - anomalySize * 2; + long anomalySizeBasedEndTime = anomalyMiddle + anomalySize * 2; - if (anomalyBasedStartTime > startTime) { - startTime = anomalyBasedStartTime; + // 20 points before and after the anomaly should be good enough + long stepBasedStartTime = anomalyMiddle - context.getStepSeconds() * 20; + long stepBasedEndTime = anomalyMiddle + context.getStepSeconds() * 20; + + long desiredStartTime = Math.min(anomalySizeBasedStartTime, stepBasedStartTime); + long desiredEndTime = Math.max(anomalySizeBasedEndTime, stepBasedEndTime); + + if (desiredStartTime > startTime) { + startTime = desiredStartTime; } - if (anomalyBasedEndTime < endTime) { - endTime = anomalyBasedEndTime; + if (desiredEndTime < endTime) { + endTime = desiredEndTime; } + return ImmutablePair.of(Instant.ofEpochSecond(startTime), Instant.ofEpochSecond(endTime)); } @@ -156,8 +161,7 @@ protected void createAnomalies( ? Instant.ofEpochMilli(graphAnomaly.getEndTime()) : null; Pair graphStartEndTime = - calculateGraphStartEndTime( - context.getStartTime(), context.getEndTime(), anomalyStartTime, anomalyEndTime); + calculateGraphStartEndTime(context, anomalyStartTime, anomalyEndTime); Anomaly.AnomalyBuilder anomalyBuilder = Anomaly.builder() .uuid(UUID.randomUUID()) diff --git a/troubleshoot/backend/src/main/resources/application.properties b/troubleshoot/backend/src/main/resources/application.properties index 5f76b2c07008..6528c41cff31 100644 --- a/troubleshoot/backend/src/main/resources/application.properties +++ b/troubleshoot/backend/src/main/resources/application.properties @@ -21,9 +21,9 @@ management.metrics.distribution.percentiles-histogram.http.server.requests=true management.endpoints.web.exposure.include=health,prometheus,info,flyway,configprops # Scheduler configuration -task.universe_details_query.period=PT1M +task.universe_details_query.period=PT10M task.universe_details_query.threads=2 -task.pg_stat_statements_query.period=PT1M +task.pg_stat_statements_query.period=PT10M task.pg_stat_statements_query.threads=5 task.pg_stat_statements_nodes_query.threads=20 task.metric_query.threads=10 diff --git a/troubleshoot/backend/src/test/resources/anomaly/query_latency/anomalies.json b/troubleshoot/backend/src/test/resources/anomaly/query_latency/anomalies.json index 3b8bb5836b82..d7dab8f5e4b2 100644 --- a/troubleshoot/backend/src/test/resources/anomaly/query_latency/anomalies.json +++ b/troubleshoot/backend/src/test/resources/anomaly/query_latency/anomalies.json @@ -230,11 +230,11 @@ "affectedTables": null, "summary": "Latencies increased for query 'select * from some_table' in database 'yugabyte'", "detectionTime": null, - "startTime": "2024-01-18T15:40:48Z", - "endTime": "2024-01-18T16:31:12Z", + "startTime": "2024-01-18T15:40:00Z", + "endTime": "2024-01-18T16:40:00Z", "graphStartTime": "2024-01-18T15:00:00Z", - "graphEndTime": "2024-01-18T17:46:48Z", - "graphStepSeconds": 144 + "graphEndTime": "2024-01-18T19:00:00Z", + "graphStepSeconds": 1200 }, { "uuid": null, @@ -463,10 +463,10 @@ "affectedTables": null, "summary": "Latencies increased for query 'select * from some_table' in database 'postgres'", "detectionTime": null, - "startTime": "2024-01-18T16:21:36Z", - "endTime": "2024-01-18T17:21:36Z", + "startTime": "2024-01-18T16:20:00Z", + "endTime": "2024-01-18T17:20:00Z", "graphStartTime": "2024-01-18T15:00:00Z", - "graphEndTime": "2024-01-18T18:51:36Z", - "graphStepSeconds": 144 + "graphEndTime": "2024-01-18T19:00:00Z", + "graphStepSeconds": 1200 } ] diff --git a/troubleshoot/backend/src/test/resources/query/outlier_nodes_pss_response.json b/troubleshoot/backend/src/test/resources/query/outlier_nodes_pss_response.json index eeff310d97fd..e9f66b460914 100644 --- a/troubleshoot/backend/src/test/resources/query/outlier_nodes_pss_response.json +++ b/troubleshoot/backend/src/test/resources/query/outlier_nodes_pss_response.json @@ -18,7 +18,7 @@ "tickformat": null } }, - "stepSeconds": 120, + "stepSeconds": 1200, "data": [ { "name": "Average", @@ -35,88 +35,30 @@ "universeUuid": "" }, "x": [ - 1706272200000, - 1706272560000, + 1706271600000, 1706272800000, - 1706273160000, - 1706273400000, - 1706273760000, 1706274000000, - 1706274360000, - 1706274600000, - 1706274960000, 1706275200000, - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "120.0", - "117.0", - "114.0", - "111.0", - "108.0", - "105.0", - "102.0", - "99.0", - "96.0", - "93.0", - "90.0", - "87.0", - "84.0", - "81.0", - "78.0", - "75.0", - "72.0", - "69.0", - "66.0", - "63.0", - "60.0", - "57.0", - "54.0", - "51.0", - "48.0", - "45.0", - "42.0", - "39.0", - "36.0", - "33.0", - "30.0", - "27.0", - "24.0", - "21.0", - "18.0", - "15.0", - "12.0", - "9.0", - "6.0", - "3.0" + "130.5", + "118.5", + "106.5", + "94.5", + "82.5", + "70.5", + "58.5", + "46.5", + "34.5", + "22.5", + "10.5" ] }, { @@ -134,88 +76,30 @@ "universeUuid": "" }, "x": [ - 1706272200000, - 1706272560000, + 1706271600000, 1706272800000, - 1706273160000, - 1706273400000, - 1706273760000, 1706274000000, - 1706274360000, - 1706274600000, - 1706274960000, 1706275200000, - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "280.0", - "273.0", - "266.0", - "259.0", - "252.0", - "245.0", - "238.0", - "231.0", - "224.0", - "217.0", - "210.0", - "203.0", - "196.0", - "189.0", - "182.0", - "175.0", - "168.0", - "161.0", - "154.0", - "147.0", - "140.0", - "133.0", - "126.0", - "119.0", - "112.0", - "105.0", - "98.0", - "91.0", - "84.0", - "77.0", - "70.0", - "63.0", - "56.0", - "49.0", - "42.0", - "35.0", - "28.0", - "21.0", - "14.0", - "7.0" + "304.5", + "276.5", + "248.5", + "220.5", + "192.5", + "164.5", + "136.5", + "108.5", + "80.5", + "52.5", + "24.5" ] }, { @@ -233,88 +117,30 @@ "universeUuid": "" }, "x": [ - 1706272200000, - 1706272560000, + 1706271600000, 1706272800000, - 1706273160000, - 1706273400000, - 1706273760000, 1706274000000, - 1706274360000, - 1706274600000, - 1706274960000, 1706275200000, - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "160.0", - "156.0", - "152.0", - "148.0", - "144.0", - "140.0", - "136.0", - "132.0", - "128.0", - "124.0", - "120.0", - "116.0", - "112.0", - "108.0", - "104.0", - "100.0", - "96.0", - "92.0", - "88.0", - "84.0", - "80.0", - "76.0", - "72.0", - "68.0", - "64.0", - "60.0", - "56.0", - "52.0", - "48.0", - "44.0", - "40.0", - "36.0", - "32.0", - "28.0", - "24.0", - "20.0", - "16.0", - "12.0", - "8.0", - "4.0" + "174.0", + "158.0", + "142.0", + "126.0", + "110.0", + "94.0", + "78.0", + "62.0", + "46.0", + "30.0", + "14.0" ] }, { @@ -332,88 +158,30 @@ "universeUuid": "" }, "x": [ - 1706272200000, - 1706272560000, + 1706271600000, 1706272800000, - 1706273160000, - 1706273400000, - 1706273760000, 1706274000000, - 1706274360000, - 1706274600000, - 1706274960000, 1706275200000, - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "200.0", - "195.0", - "190.0", - "185.0", - "180.0", - "175.0", - "170.0", - "165.0", - "160.0", - "155.0", - "150.0", - "145.0", - "140.0", - "135.0", - "130.0", - "125.0", - "120.0", - "115.0", - "110.0", - "105.0", - "100.0", - "95.0", - "90.0", - "85.0", - "80.0", - "75.0", - "70.0", - "65.0", - "60.0", - "55.0", - "50.0", - "45.0", - "40.0", - "35.0", - "30.0", - "25.0", - "20.0", - "15.0", - "10.0", - "5.0" + "217.5", + "197.5", + "177.5", + "157.5", + "137.5", + "117.5", + "97.5", + "77.5", + "57.5", + "37.5", + "17.5" ] }, { @@ -431,88 +199,30 @@ "universeUuid": "" }, "x": [ - 1706272200000, - 1706272560000, + 1706271600000, 1706272800000, - 1706273160000, - 1706273400000, - 1706273760000, 1706274000000, - 1706274360000, - 1706274600000, - 1706274960000, 1706275200000, - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "240.0", - "234.0", - "228.0", - "222.0", - "216.0", - "210.0", - "204.0", - "198.0", - "192.0", - "186.0", - "180.0", - "174.0", - "168.0", - "162.0", - "156.0", - "150.0", - "144.0", - "138.0", - "132.0", - "126.0", - "120.0", - "114.0", - "108.0", - "102.0", - "96.0", - "90.0", - "84.0", - "78.0", - "72.0", - "66.0", - "60.0", - "54.0", - "48.0", - "42.0", - "36.0", - "30.0", - "24.0", - "18.0", - "12.0", - "6.0" + "261.0", + "237.0", + "213.0", + "189.0", + "165.0", + "141.0", + "117.0", + "93.0", + "69.0", + "45.0", + "21.0" ] }, { @@ -530,66 +240,22 @@ "universeUuid": "" }, "x": [ - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "87.0", - "84.0", - "81.0", - "78.0", - "75.0", - "72.0", - "69.0", - "66.0", - "63.0", - "60.0", - "57.0", - "54.0", - "51.0", - "48.0", - "45.0", - "42.0", - "39.0", - "36.0", - "33.0", - "30.0", - "27.0", - "24.0", - "21.0", - "18.0", - "15.0", - "12.0", - "9.0", - "6.0", - "3.0" + "82.5", + "70.5", + "58.5", + "46.5", + "34.5", + "22.5", + "10.5" ] }, { @@ -607,66 +273,22 @@ "universeUuid": "" }, "x": [ - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "203.0", - "196.0", - "189.0", - "182.0", - "175.0", - "168.0", - "161.0", - "154.0", - "147.0", - "140.0", - "133.0", - "126.0", - "119.0", - "112.0", - "105.0", - "98.0", - "91.0", - "84.0", - "77.0", - "70.0", - "63.0", - "56.0", - "49.0", - "42.0", - "35.0", - "28.0", - "21.0", - "14.0", - "7.0" + "192.5", + "164.5", + "136.5", + "108.5", + "80.5", + "52.5", + "24.5" ] }, { @@ -684,66 +306,22 @@ "universeUuid": "" }, "x": [ - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "116.0", - "112.0", - "108.0", - "104.0", - "100.0", - "96.0", - "92.0", - "88.0", - "84.0", - "80.0", - "76.0", - "72.0", - "68.0", - "64.0", - "60.0", - "56.0", - "52.0", - "48.0", - "44.0", - "40.0", - "36.0", - "32.0", - "28.0", - "24.0", - "20.0", - "16.0", - "12.0", - "8.0", - "4.0" + "110.0", + "94.0", + "78.0", + "62.0", + "46.0", + "30.0", + "14.0" ] }, { @@ -761,66 +339,22 @@ "universeUuid": "" }, "x": [ - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "145.0", - "140.0", - "135.0", - "130.0", - "125.0", - "120.0", - "115.0", - "110.0", - "105.0", - "100.0", - "95.0", - "90.0", - "85.0", - "80.0", - "75.0", - "70.0", - "65.0", - "60.0", - "55.0", - "50.0", - "45.0", - "40.0", - "35.0", - "30.0", - "25.0", - "20.0", - "15.0", - "10.0", - "5.0" + "137.5", + "117.5", + "97.5", + "77.5", + "57.5", + "37.5", + "17.5" ] }, { @@ -838,66 +372,22 @@ "universeUuid": "" }, "x": [ - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "174.0", - "168.0", - "162.0", - "156.0", - "150.0", - "144.0", - "138.0", - "132.0", - "126.0", - "120.0", - "114.0", - "108.0", - "102.0", - "96.0", - "90.0", - "84.0", - "78.0", - "72.0", - "66.0", - "60.0", - "54.0", - "48.0", - "42.0", - "36.0", - "30.0", - "24.0", - "18.0", - "12.0", - "6.0" + "165.0", + "141.0", + "117.0", + "93.0", + "69.0", + "45.0", + "21.0" ] }, { @@ -915,66 +405,22 @@ "universeUuid": "" }, "x": [ - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "87.0", - "84.0", - "81.0", - "78.0", - "75.0", - "72.0", - "69.0", - "66.0", - "63.0", - "60.0", - "57.0", - "54.0", - "51.0", - "48.0", - "45.0", - "42.0", - "39.0", - "36.0", - "33.0", - "30.0", - "27.0", - "24.0", - "21.0", - "18.0", - "15.0", - "12.0", - "9.0", - "6.0", - "3.0" + "82.5", + "70.5", + "58.5", + "46.5", + "34.5", + "22.5", + "10.5" ] }, { @@ -992,66 +438,22 @@ "universeUuid": "" }, "x": [ - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "203.0", - "196.0", - "189.0", - "182.0", - "175.0", - "168.0", - "161.0", - "154.0", - "147.0", - "140.0", - "133.0", - "126.0", - "119.0", - "112.0", - "105.0", - "98.0", - "91.0", - "84.0", - "77.0", - "70.0", - "63.0", - "56.0", - "49.0", - "42.0", - "35.0", - "28.0", - "21.0", - "14.0", - "7.0" + "192.5", + "164.5", + "136.5", + "108.5", + "80.5", + "52.5", + "24.5" ] }, { @@ -1069,66 +471,22 @@ "universeUuid": "" }, "x": [ - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "116.0", - "112.0", - "108.0", - "104.0", - "100.0", - "96.0", - "92.0", - "88.0", - "84.0", - "80.0", - "76.0", - "72.0", - "68.0", - "64.0", - "60.0", - "56.0", - "52.0", - "48.0", - "44.0", - "40.0", - "36.0", - "32.0", - "28.0", - "24.0", - "20.0", - "16.0", - "12.0", - "8.0", - "4.0" + "110.0", + "94.0", + "78.0", + "62.0", + "46.0", + "30.0", + "14.0" ] }, { @@ -1146,66 +504,22 @@ "universeUuid": "" }, "x": [ - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "145.0", - "140.0", - "135.0", - "130.0", - "125.0", - "120.0", - "115.0", - "110.0", - "105.0", - "100.0", - "95.0", - "90.0", - "85.0", - "80.0", - "75.0", - "70.0", - "65.0", - "60.0", - "55.0", - "50.0", - "45.0", - "40.0", - "35.0", - "30.0", - "25.0", - "20.0", - "15.0", - "10.0", - "5.0" + "137.5", + "117.5", + "97.5", + "77.5", + "57.5", + "37.5", + "17.5" ] }, { @@ -1223,66 +537,22 @@ "universeUuid": "" }, "x": [ - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "174.0", - "168.0", - "162.0", - "156.0", - "150.0", - "144.0", - "138.0", - "132.0", - "126.0", - "120.0", - "114.0", - "108.0", - "102.0", - "96.0", - "90.0", - "84.0", - "78.0", - "72.0", - "66.0", - "60.0", - "54.0", - "48.0", - "42.0", - "36.0", - "30.0", - "24.0", - "18.0", - "12.0", - "6.0" + "165.0", + "141.0", + "117.0", + "93.0", + "69.0", + "45.0", + "21.0" ] } ] diff --git a/troubleshoot/backend/src/test/resources/query/overall_pss_response.json b/troubleshoot/backend/src/test/resources/query/overall_pss_response.json index 95a0e5423b6a..fb6debd3b82e 100644 --- a/troubleshoot/backend/src/test/resources/query/overall_pss_response.json +++ b/troubleshoot/backend/src/test/resources/query/overall_pss_response.json @@ -18,7 +18,7 @@ "tickformat": null } }, - "stepSeconds": 120, + "stepSeconds": 1200, "data": [ { "name": "Average", @@ -35,88 +35,30 @@ "universeUuid": "" }, "x": [ - 1706272200000, - 1706272560000, + 1706271600000, 1706272800000, - 1706273160000, - 1706273400000, - 1706273760000, 1706274000000, - 1706274360000, - 1706274600000, - 1706274960000, 1706275200000, - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "120.0", - "117.0", - "114.0", - "111.0", - "108.0", - "105.0", - "102.0", - "99.0", - "96.0", - "93.0", - "90.0", - "87.0", - "84.0", - "81.0", - "78.0", - "75.0", - "72.0", - "69.0", - "66.0", - "63.0", - "60.0", - "57.0", - "54.0", - "51.0", - "48.0", - "45.0", - "42.0", - "39.0", - "36.0", - "33.0", - "30.0", - "27.0", - "24.0", - "21.0", - "18.0", - "15.0", - "12.0", - "9.0", - "6.0", - "3.0" + "130.5", + "118.5", + "106.5", + "94.5", + "82.5", + "70.5", + "58.5", + "46.5", + "34.5", + "22.5", + "10.5" ] }, { @@ -134,88 +76,30 @@ "universeUuid": "" }, "x": [ - 1706272200000, - 1706272560000, + 1706271600000, 1706272800000, - 1706273160000, - 1706273400000, - 1706273760000, 1706274000000, - 1706274360000, - 1706274600000, - 1706274960000, 1706275200000, - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "280.0", - "273.0", - "266.0", - "259.0", - "252.0", - "245.0", - "238.0", - "231.0", - "224.0", - "217.0", - "210.0", - "203.0", - "196.0", - "189.0", - "182.0", - "175.0", - "168.0", - "161.0", - "154.0", - "147.0", - "140.0", - "133.0", - "126.0", - "119.0", - "112.0", - "105.0", - "98.0", - "91.0", - "84.0", - "77.0", - "70.0", - "63.0", - "56.0", - "49.0", - "42.0", - "35.0", - "28.0", - "21.0", - "14.0", - "7.0" + "304.5", + "276.5", + "248.5", + "220.5", + "192.5", + "164.5", + "136.5", + "108.5", + "80.5", + "52.5", + "24.5" ] }, { @@ -233,88 +117,30 @@ "universeUuid": "" }, "x": [ - 1706272200000, - 1706272560000, + 1706271600000, 1706272800000, - 1706273160000, - 1706273400000, - 1706273760000, 1706274000000, - 1706274360000, - 1706274600000, - 1706274960000, 1706275200000, - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "160.0", - "156.0", - "152.0", - "148.0", - "144.0", - "140.0", - "136.0", - "132.0", - "128.0", - "124.0", - "120.0", - "116.0", - "112.0", - "108.0", - "104.0", - "100.0", - "96.0", - "92.0", - "88.0", - "84.0", - "80.0", - "76.0", - "72.0", - "68.0", - "64.0", - "60.0", - "56.0", - "52.0", - "48.0", - "44.0", - "40.0", - "36.0", - "32.0", - "28.0", - "24.0", - "20.0", - "16.0", - "12.0", - "8.0", - "4.0" + "174.0", + "158.0", + "142.0", + "126.0", + "110.0", + "94.0", + "78.0", + "62.0", + "46.0", + "30.0", + "14.0" ] }, { @@ -332,88 +158,30 @@ "universeUuid": "" }, "x": [ - 1706272200000, - 1706272560000, + 1706271600000, 1706272800000, - 1706273160000, - 1706273400000, - 1706273760000, 1706274000000, - 1706274360000, - 1706274600000, - 1706274960000, 1706275200000, - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "200.0", - "195.0", - "190.0", - "185.0", - "180.0", - "175.0", - "170.0", - "165.0", - "160.0", - "155.0", - "150.0", - "145.0", - "140.0", - "135.0", - "130.0", - "125.0", - "120.0", - "115.0", - "110.0", - "105.0", - "100.0", - "95.0", - "90.0", - "85.0", - "80.0", - "75.0", - "70.0", - "65.0", - "60.0", - "55.0", - "50.0", - "45.0", - "40.0", - "35.0", - "30.0", - "25.0", - "20.0", - "15.0", - "10.0", - "5.0" + "217.5", + "197.5", + "177.5", + "157.5", + "137.5", + "117.5", + "97.5", + "77.5", + "57.5", + "37.5", + "17.5" ] }, { @@ -431,88 +199,30 @@ "universeUuid": "" }, "x": [ - 1706272200000, - 1706272560000, + 1706271600000, 1706272800000, - 1706273160000, - 1706273400000, - 1706273760000, 1706274000000, - 1706274360000, - 1706274600000, - 1706274960000, 1706275200000, - 1706275560000, - 1706275800000, - 1706276160000, 1706276400000, - 1706276760000, - 1706277000000, - 1706277360000, 1706277600000, - 1706277960000, - 1706278200000, - 1706278560000, 1706278800000, - 1706279160000, - 1706279400000, - 1706279760000, 1706280000000, - 1706280360000, - 1706280600000, - 1706280960000, 1706281200000, - 1706281560000, - 1706281800000, - 1706282160000, 1706282400000, - 1706282760000, - 1706283000000, - 1706283360000, - 1706283600000, - 1706283960000 + 1706283600000 ], "y": [ - "240.0", - "234.0", - "228.0", - "222.0", - "216.0", - "210.0", - "204.0", - "198.0", - "192.0", - "186.0", - "180.0", - "174.0", - "168.0", - "162.0", - "156.0", - "150.0", - "144.0", - "138.0", - "132.0", - "126.0", - "120.0", - "114.0", - "108.0", - "102.0", - "96.0", - "90.0", - "84.0", - "78.0", - "72.0", - "66.0", - "60.0", - "54.0", - "48.0", - "42.0", - "36.0", - "30.0", - "24.0", - "18.0", - "12.0", - "6.0" + "261.0", + "237.0", + "213.0", + "189.0", + "165.0", + "141.0", + "117.0", + "93.0", + "69.0", + "45.0", + "21.0" ] } ]