Tidy up formatting of perf scenarios
This commit is contained in:
parent
0e6d7e9a40
commit
06e6397dd1
|
@ -83,165 +83,166 @@ export const options = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
thresholds: {
|
thresholds: {
|
||||||
checks: ['rate==1'],
|
checks: [ 'rate==1' ],
|
||||||
|
// Listing individual metrics due to https://github.com/grafana/k6/issues/1321
|
||||||
'http_req_duration{name:Shopper - Site Root}': [
|
'http_req_duration{name:Shopper - Site Root}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Shop Page}': [
|
'http_req_duration{name:Shopper - Shop Page}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Search Products}': [
|
'http_req_duration{name:Shopper - Search Products}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Category Page}': [
|
'http_req_duration{name:Shopper - Category Page}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Product Page}': [
|
'http_req_duration{name:Shopper - Product Page}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=add_to_cart}': [
|
'http_req_duration{name:Shopper - wc-ajax=add_to_cart}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - View Cart}': [
|
'http_req_duration{name:Shopper - View Cart}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Remove Item From Cart}': [
|
'http_req_duration{name:Shopper - Remove Item From Cart}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=apply_coupon}': [
|
'http_req_duration{name:Shopper - wc-ajax=apply_coupon}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Update Cart}': [
|
'http_req_duration{name:Shopper - Update Cart}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - View Checkout}': [
|
'http_req_duration{name:Shopper - View Checkout}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=update_order_review}': [
|
'http_req_duration{name:Shopper - wc-ajax=update_order_review}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=checkout}': [
|
'http_req_duration{name:Shopper - wc-ajax=checkout}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Order Received}': [
|
'http_req_duration{name:Shopper - Order Received}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=get_refreshed_fragments}': [
|
'http_req_duration{name:Shopper - wc-ajax=get_refreshed_fragments}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Login to Checkout}': [
|
'http_req_duration{name:Shopper - Login to Checkout}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account Login Page}': [
|
'http_req_duration{name:Shopper - My Account Login Page}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Login to My Account}': [
|
'http_req_duration{name:Shopper - Login to My Account}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account}': [
|
'http_req_duration{name:Shopper - My Account}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account Orders}': [
|
'http_req_duration{name:Shopper - My Account Orders}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account Open Order}': [
|
'http_req_duration{name:Shopper - My Account Open Order}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - WP Login Page}': [
|
'http_req_duration{name:Merchant - WP Login Page}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Login to WP Admin}': [
|
'http_req_duration{name:Merchant - Login to WP Admin}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - WC-Admin}': [
|
'http_req_duration{name:Merchant - WC-Admin}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-analytics/orders?}': [
|
'http_req_duration{name:Merchant - wc-analytics/orders?}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-analytics/products/reviews?}': [
|
'http_req_duration{name:Merchant - wc-analytics/products/reviews?}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-analytics/products/low-in-stock?}':
|
'http_req_duration{name:Merchant - wc-analytics/products/low-in-stock?}':
|
||||||
[`${merchant_request_threshold}`],
|
[ `${ merchant_request_threshold }` ],
|
||||||
'http_req_duration{name:Merchant - All Orders}': [
|
'http_req_duration{name:Merchant - All Orders}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Completed Orders}': [
|
'http_req_duration{name:Merchant - Completed Orders}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - New Order Page}': [
|
'http_req_duration{name:Merchant - New Order Page}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Create New Order}': [
|
'http_req_duration{name:Merchant - Create New Order}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Open Order}': [
|
'http_req_duration{name:Merchant - Open Order}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Update Existing Order Status}': [
|
'http_req_duration{name:Merchant - Update Existing Order Status}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Search Orders By Product}': [
|
'http_req_duration{name:Merchant - Search Orders By Product}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Search Orders By Customer Email}': [
|
'http_req_duration{name:Merchant - Search Orders By Customer Email}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Search Orders By Customer Address}':
|
'http_req_duration{name:Merchant - Search Orders By Customer Address}':
|
||||||
[`${merchant_request_threshold}`],
|
[ `${ merchant_request_threshold }` ],
|
||||||
'http_req_duration{name:Merchant - Filter Orders By Month}': [
|
'http_req_duration{name:Merchant - Filter Orders By Month}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Filter Orders By Customer}': [
|
'http_req_duration{name:Merchant - Filter Orders By Customer}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - All Products}': [
|
'http_req_duration{name:Merchant - All Products}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Add New Product}': [
|
'http_req_duration{name:Merchant - Add New Product}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - action=sample-permalink}': [
|
'http_req_duration{name:Merchant - action=sample-permalink}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - action=heartbeat autosave}': [
|
'http_req_duration{name:Merchant - action=heartbeat autosave}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Update New Product}': [
|
'http_req_duration{name:Merchant - Update New Product}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Coupons}': [
|
'http_req_duration{name:Merchant - Coupons}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-admin/onboarding/tasks?}': [
|
'http_req_duration{name:Merchant - wc-admin/onboarding/tasks?}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-analytics/admin/notes?}': [
|
'http_req_duration{name:Merchant - wc-analytics/admin/notes?}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-admin/options?options=woocommerce_ces_tracks_queue}':
|
'http_req_duration{name:Merchant - wc-admin/options?options=woocommerce_ces_tracks_queue}':
|
||||||
[`${merchant_request_threshold}`],
|
[ `${ merchant_request_threshold }` ],
|
||||||
'http_req_duration{name:Merchant - action=heartbeat}': [
|
'http_req_duration{name:Merchant - action=heartbeat}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Create Order}': [
|
'http_req_duration{name:API - Create Order}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Retrieve Order}': [
|
'http_req_duration{name:API - Retrieve Order}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Update Order (Status)}': [
|
'http_req_duration{name:API - Update Order (Status)}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Delete Order}': [
|
'http_req_duration{name:API - Delete Order}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Batch Create Orders}': [
|
'http_req_duration{name:API - Batch Create Orders}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Batch Update (Status) Orders}': [
|
'http_req_duration{name:API - Batch Update (Status) Orders}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -85,6 +85,7 @@ export const options = {
|
||||||
},
|
},
|
||||||
thresholds: {
|
thresholds: {
|
||||||
checks: [ 'rate==1' ],
|
checks: [ 'rate==1' ],
|
||||||
|
// Listing individual metrics due to https://github.com/grafana/k6/issues/1321
|
||||||
'http_req_duration{name:Shopper - Site Root}': [
|
'http_req_duration{name:Shopper - Site Root}': [
|
||||||
`${ shopper_request_threshold }`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
|
@ -140,13 +141,13 @@ export const options = {
|
||||||
`${ shopper_request_threshold }`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account}': [
|
'http_req_duration{name:Shopper - My Account}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account Orders}': [
|
'http_req_duration{name:Shopper - My Account Orders}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account Open Order}': [
|
'http_req_duration{name:Shopper - My Account Open Order}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - WP Login Page}': [
|
'http_req_duration{name:Merchant - WP Login Page}': [
|
||||||
`${ merchant_request_threshold }`,
|
`${ merchant_request_threshold }`,
|
||||||
|
|
|
@ -87,165 +87,166 @@ export const options = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
thresholds: {
|
thresholds: {
|
||||||
checks: ['rate==1'],
|
checks: [ 'rate==1' ],
|
||||||
|
// Listing individual metrics due to https://github.com/grafana/k6/issues/1321
|
||||||
'http_req_duration{name:Shopper - Site Root}': [
|
'http_req_duration{name:Shopper - Site Root}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Shop Page}': [
|
'http_req_duration{name:Shopper - Shop Page}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Search Products}': [
|
'http_req_duration{name:Shopper - Search Products}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Category Page}': [
|
'http_req_duration{name:Shopper - Category Page}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Product Page}': [
|
'http_req_duration{name:Shopper - Product Page}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=add_to_cart}': [
|
'http_req_duration{name:Shopper - wc-ajax=add_to_cart}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - View Cart}': [
|
'http_req_duration{name:Shopper - View Cart}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Remove Item From Cart}': [
|
'http_req_duration{name:Shopper - Remove Item From Cart}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=apply_coupon}': [
|
'http_req_duration{name:Shopper - wc-ajax=apply_coupon}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Update Cart}': [
|
'http_req_duration{name:Shopper - Update Cart}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - View Checkout}': [
|
'http_req_duration{name:Shopper - View Checkout}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=update_order_review}': [
|
'http_req_duration{name:Shopper - wc-ajax=update_order_review}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=checkout}': [
|
'http_req_duration{name:Shopper - wc-ajax=checkout}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Order Received}': [
|
'http_req_duration{name:Shopper - Order Received}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=get_refreshed_fragments}': [
|
'http_req_duration{name:Shopper - wc-ajax=get_refreshed_fragments}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Login to Checkout}': [
|
'http_req_duration{name:Shopper - Login to Checkout}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account Login Page}': [
|
'http_req_duration{name:Shopper - My Account Login Page}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Login to My Account}': [
|
'http_req_duration{name:Shopper - Login to My Account}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account}': [
|
'http_req_duration{name:Shopper - My Account}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account Orders}': [
|
'http_req_duration{name:Shopper - My Account Orders}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account Open Order}': [
|
'http_req_duration{name:Shopper - My Account Open Order}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - WP Login Page}': [
|
'http_req_duration{name:Merchant - WP Login Page}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Login to WP Admin}': [
|
'http_req_duration{name:Merchant - Login to WP Admin}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - WC-Admin}': [
|
'http_req_duration{name:Merchant - WC-Admin}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-analytics/orders?}': [
|
'http_req_duration{name:Merchant - wc-analytics/orders?}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-analytics/products/reviews?}': [
|
'http_req_duration{name:Merchant - wc-analytics/products/reviews?}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-analytics/products/low-in-stock?}':
|
'http_req_duration{name:Merchant - wc-analytics/products/low-in-stock?}':
|
||||||
[`${merchant_request_threshold}`],
|
[ `${ merchant_request_threshold }` ],
|
||||||
'http_req_duration{name:Merchant - All Orders}': [
|
'http_req_duration{name:Merchant - All Orders}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Completed Orders}': [
|
'http_req_duration{name:Merchant - Completed Orders}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - New Order Page}': [
|
'http_req_duration{name:Merchant - New Order Page}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Create New Order}': [
|
'http_req_duration{name:Merchant - Create New Order}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Open Order}': [
|
'http_req_duration{name:Merchant - Open Order}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Update Existing Order Status}': [
|
'http_req_duration{name:Merchant - Update Existing Order Status}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Search Orders By Product}': [
|
'http_req_duration{name:Merchant - Search Orders By Product}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Search Orders By Customer Email}': [
|
'http_req_duration{name:Merchant - Search Orders By Customer Email}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Search Orders By Customer Address}':
|
'http_req_duration{name:Merchant - Search Orders By Customer Address}':
|
||||||
[`${merchant_request_threshold}`],
|
[ `${ merchant_request_threshold }` ],
|
||||||
'http_req_duration{name:Merchant - Filter Orders By Month}': [
|
'http_req_duration{name:Merchant - Filter Orders By Month}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Filter Orders By Customer}': [
|
'http_req_duration{name:Merchant - Filter Orders By Customer}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - All Products}': [
|
'http_req_duration{name:Merchant - All Products}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Add New Product}': [
|
'http_req_duration{name:Merchant - Add New Product}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - action=sample-permalink}': [
|
'http_req_duration{name:Merchant - action=sample-permalink}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - action=heartbeat autosave}': [
|
'http_req_duration{name:Merchant - action=heartbeat autosave}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Update New Product}': [
|
'http_req_duration{name:Merchant - Update New Product}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Coupons}': [
|
'http_req_duration{name:Merchant - Coupons}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-admin/onboarding/tasks?}': [
|
'http_req_duration{name:Merchant - wc-admin/onboarding/tasks?}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-analytics/admin/notes?}': [
|
'http_req_duration{name:Merchant - wc-analytics/admin/notes?}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-admin/options?options=woocommerce_ces_tracks_queue}':
|
'http_req_duration{name:Merchant - wc-admin/options?options=woocommerce_ces_tracks_queue}':
|
||||||
[`${merchant_request_threshold}`],
|
[ `${ merchant_request_threshold }` ],
|
||||||
'http_req_duration{name:Merchant - action=heartbeat}': [
|
'http_req_duration{name:Merchant - action=heartbeat}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Create Order}': [
|
'http_req_duration{name:API - Create Order}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Retrieve Order}': [
|
'http_req_duration{name:API - Retrieve Order}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Update Order (Status)}': [
|
'http_req_duration{name:API - Update Order (Status)}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Delete Order}': [
|
'http_req_duration{name:API - Delete Order}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Batch Create Orders}': [
|
'http_req_duration{name:API - Batch Create Orders}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Batch Update (Status) Orders}': [
|
'http_req_duration{name:API - Batch Update (Status) Orders}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -275,7 +276,7 @@ export function cartFlow() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function allMerchantFlow() {
|
export function allMerchantFlow() {
|
||||||
if (admin_acc_login === true) {
|
if ( admin_acc_login === true ) {
|
||||||
myAccountMerchantLogin();
|
myAccountMerchantLogin();
|
||||||
} else {
|
} else {
|
||||||
wpLogin();
|
wpLogin();
|
||||||
|
|
|
@ -118,171 +118,172 @@ export const options = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
thresholds: {
|
thresholds: {
|
||||||
|
// Listing individual metrics due to https://github.com/grafana/k6/issues/1321
|
||||||
'http_req_duration{name:Shopper - Site Root}': [
|
'http_req_duration{name:Shopper - Site Root}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Shop Page}': [
|
'http_req_duration{name:Shopper - Shop Page}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Search Products}': [
|
'http_req_duration{name:Shopper - Search Products}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Category Page}': [
|
'http_req_duration{name:Shopper - Category Page}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Product Page}': [
|
'http_req_duration{name:Shopper - Product Page}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=add_to_cart}': [
|
'http_req_duration{name:Shopper - wc-ajax=add_to_cart}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - View Cart}': [
|
'http_req_duration{name:Shopper - View Cart}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Remove Item From Cart}': [
|
'http_req_duration{name:Shopper - Remove Item From Cart}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=apply_coupon}': [
|
'http_req_duration{name:Shopper - wc-ajax=apply_coupon}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Update Cart}': [
|
'http_req_duration{name:Shopper - Update Cart}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - View Checkout}': [
|
'http_req_duration{name:Shopper - View Checkout}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=update_order_review}': [
|
'http_req_duration{name:Shopper - wc-ajax=update_order_review}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=checkout}': [
|
'http_req_duration{name:Shopper - wc-ajax=checkout}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Order Received}': [
|
'http_req_duration{name:Shopper - Order Received}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - wc-ajax=get_refreshed_fragments}': [
|
'http_req_duration{name:Shopper - wc-ajax=get_refreshed_fragments}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Login to Checkout}': [
|
'http_req_duration{name:Shopper - Login to Checkout}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account Login Page}': [
|
'http_req_duration{name:Shopper - My Account Login Page}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - Login to My Account}': [
|
'http_req_duration{name:Shopper - Login to My Account}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account}': [
|
'http_req_duration{name:Shopper - My Account}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account Orders}': [
|
'http_req_duration{name:Shopper - My Account Orders}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Shopper - My Account Open Order}': [
|
'http_req_duration{name:Shopper - My Account Open Order}': [
|
||||||
`${shopper_request_threshold}`,
|
`${ shopper_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - WP Login Page}': [
|
'http_req_duration{name:Merchant - WP Login Page}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Login to WP Admin}': [
|
'http_req_duration{name:Merchant - Login to WP Admin}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - WC-Admin}': [
|
'http_req_duration{name:Merchant - WC-Admin}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-analytics/orders?}': [
|
'http_req_duration{name:Merchant - wc-analytics/orders?}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-analytics/products/reviews?}': [
|
'http_req_duration{name:Merchant - wc-analytics/products/reviews?}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-analytics/products/low-in-stock?}':
|
'http_req_duration{name:Merchant - wc-analytics/products/low-in-stock?}':
|
||||||
[`${merchant_request_threshold}`],
|
[ `${ merchant_request_threshold }` ],
|
||||||
'http_req_duration{name:Merchant - All Orders}': [
|
'http_req_duration{name:Merchant - All Orders}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Completed Orders}': [
|
'http_req_duration{name:Merchant - Completed Orders}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - New Order Page}': [
|
'http_req_duration{name:Merchant - New Order Page}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Create New Order}': [
|
'http_req_duration{name:Merchant - Create New Order}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Open Order}': [
|
'http_req_duration{name:Merchant - Open Order}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Update Existing Order Status}': [
|
'http_req_duration{name:Merchant - Update Existing Order Status}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Search Orders By Product}': [
|
'http_req_duration{name:Merchant - Search Orders By Product}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Search Orders By Customer Email}': [
|
'http_req_duration{name:Merchant - Search Orders By Customer Email}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Search Orders By Customer Address}':
|
'http_req_duration{name:Merchant - Search Orders By Customer Address}':
|
||||||
[`${merchant_request_threshold}`],
|
[ `${ merchant_request_threshold }` ],
|
||||||
'http_req_duration{name:Merchant - Filter Orders By Month}': [
|
'http_req_duration{name:Merchant - Filter Orders By Month}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Filter Orders By Customer}': [
|
'http_req_duration{name:Merchant - Filter Orders By Customer}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - All Products}': [
|
'http_req_duration{name:Merchant - All Products}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Add New Product}': [
|
'http_req_duration{name:Merchant - Add New Product}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - action=sample-permalink}': [
|
'http_req_duration{name:Merchant - action=sample-permalink}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - action=heartbeat autosave}': [
|
'http_req_duration{name:Merchant - action=heartbeat autosave}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Update New Product}': [
|
'http_req_duration{name:Merchant - Update New Product}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - Coupons}': [
|
'http_req_duration{name:Merchant - Coupons}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-admin/onboarding/tasks?}': [
|
'http_req_duration{name:Merchant - wc-admin/onboarding/tasks?}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-analytics/admin/notes?}': [
|
'http_req_duration{name:Merchant - wc-analytics/admin/notes?}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:Merchant - wc-admin/options?options=woocommerce_ces_tracks_queue}':
|
'http_req_duration{name:Merchant - wc-admin/options?options=woocommerce_ces_tracks_queue}':
|
||||||
[`${merchant_request_threshold}`],
|
[ `${ merchant_request_threshold }` ],
|
||||||
'http_req_duration{name:Merchant - action=heartbeat}': [
|
'http_req_duration{name:Merchant - action=heartbeat}': [
|
||||||
`${merchant_request_threshold}`,
|
`${ merchant_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Create Order}': [
|
'http_req_duration{name:API - Create Order}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Retrieve Order}': [
|
'http_req_duration{name:API - Retrieve Order}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Update Order (Status)}': [
|
'http_req_duration{name:API - Update Order (Status)}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Delete Order}': [
|
'http_req_duration{name:API - Delete Order}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Batch Create Orders}': [
|
'http_req_duration{name:API - Batch Create Orders}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
'http_req_duration{name:API - Batch Update (Status) Orders}': [
|
'http_req_duration{name:API - Batch Update (Status) Orders}': [
|
||||||
`${api_request_threshold}`,
|
`${ api_request_threshold }`,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// Use myAccountMerchantLogin() instead of wpLogin() if having issues with login.
|
// Use myAccountMerchantLogin() instead of wpLogin() if having issues with login.
|
||||||
export function merchantOrderFlows() {
|
export function merchantOrderFlows() {
|
||||||
if (admin_acc_login === true) {
|
if ( admin_acc_login === true ) {
|
||||||
myAccountMerchantLogin();
|
myAccountMerchantLogin();
|
||||||
} else {
|
} else {
|
||||||
wpLogin();
|
wpLogin();
|
||||||
|
@ -295,7 +296,7 @@ export function merchantOrderFlows() {
|
||||||
|
|
||||||
// Use myAccountMerchantLogin() instead of wpLogin() if having issues with login.
|
// Use myAccountMerchantLogin() instead of wpLogin() if having issues with login.
|
||||||
export function merchantOtherFlows() {
|
export function merchantOtherFlows() {
|
||||||
if (admin_acc_login === true) {
|
if ( admin_acc_login === true ) {
|
||||||
myAccountMerchantLogin();
|
myAccountMerchantLogin();
|
||||||
} else {
|
} else {
|
||||||
wpLogin();
|
wpLogin();
|
||||||
|
|
Loading…
Reference in New Issue