-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1010 from chandrams/missing_metrics
Included tests for validating the behavior when metrics section is missing
- Loading branch information
Showing
7 changed files
with
59,847 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19,835 changes: 19,835 additions & 0 deletions
19,835
.../json_files/missing_metrics_jsons/bulk_update_results_missing_metrics_few_containers.json
Large diffs are not rendered by default.
Oops, something went wrong.
19,799 changes: 19,799 additions & 0 deletions
19,799
...ns/bulk_update_results_missing_metrics_few_containers_few_individual_metrics_missing.json
Large diffs are not rendered by default.
Oops, something went wrong.
20,013 changes: 20,013 additions & 0 deletions
20,013
...son_files/missing_metrics_jsons/bulk_update_results_missing_metrics_single_container.json
Large diffs are not rendered by default.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...tests/json_files/missing_metrics_jsons/update_results_missing_metrics_all_containers.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[ | ||
{ | ||
"version": "1.0", | ||
"experiment_name": "quarkus-resteasy-kruize-min-http-response-time-db", | ||
"interval_start_time": "2022-01-23T18:25:43.511Z", | ||
"interval_end_time": "2022-01-23T18:40:43.570Z", | ||
"kubernetes_objects": [ | ||
{ | ||
"type": "deployment", | ||
"name": "tfb-qrh-deployment", | ||
"namespace": "default", | ||
"containers": [ | ||
{ | ||
"container_image_name": "kruize/tfb-db:1.15", | ||
"container_name": "tfb-server-0" | ||
}, | ||
{ | ||
"container_image_name": "kruize/tfb-qrh:1.13.2.F_et17", | ||
"container_name": "tfb-server-1" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
114 changes: 114 additions & 0 deletions
114
...sts/json_files/missing_metrics_jsons/update_results_missing_metrics_single_container.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
[ | ||
{ | ||
"version": "1.0", | ||
"experiment_name": "quarkus-resteasy-kruize-min-http-response-time-db", | ||
"interval_start_time": "2022-01-23T18:25:43.511Z", | ||
"interval_end_time": "2022-01-23T18:40:43.570Z", | ||
"kubernetes_objects": [ | ||
{ | ||
"type": "deployment", | ||
"name": "tfb-qrh-deployment", | ||
"namespace": "default", | ||
"containers": [ | ||
{ | ||
"container_image_name": "kruize/tfb-db:1.15", | ||
"container_name": "tfb-server-0" | ||
}, | ||
{ | ||
"container_image_name": "kruize/tfb-qrh:1.13.2.F_et17", | ||
"container_name": "tfb-server-1", | ||
"metrics": [ | ||
{ | ||
"name": "cpuRequest", | ||
"results": { | ||
"aggregation_info": { | ||
"sum": 4.4, | ||
"avg": 1.1, | ||
"format": "cores" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "cpuLimit", | ||
"results": { | ||
"aggregation_info": { | ||
"sum": 2.0, | ||
"avg": 0.5, | ||
"format": "cores" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "cpuUsage", | ||
"results": { | ||
"aggregation_info": { | ||
"min": 0.14, | ||
"max": 0.84, | ||
"sum": 0.84, | ||
"avg": 0.12, | ||
"format": "cores" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "cpuThrottle", | ||
"results": { | ||
"aggregation_info": { | ||
"sum": 0.19, | ||
"max": 0.09, | ||
"avg": 0.045, | ||
"format": "cores" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "memoryRequest", | ||
"results": { | ||
"aggregation_info": { | ||
"sum": 250.85, | ||
"avg": 50.21, | ||
"format": "MiB" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "memoryLimit", | ||
"results": { | ||
"aggregation_info": { | ||
"sum": 500, | ||
"avg": 100, | ||
"format": "MiB" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "memoryUsage", | ||
"results": { | ||
"aggregation_info": { | ||
"min": 50.6, | ||
"max": 198.50, | ||
"sum": 198.50, | ||
"avg": 40.1, | ||
"format": "MiB" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "memoryRSS", | ||
"results": { | ||
"aggregation_info": { | ||
"min": 50.6, | ||
"max": 123.6, | ||
"sum": 123.6, | ||
"avg": 31.91, | ||
"format": "MiB" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters