Viewing usage statistics of virtual services
Before you begin
- Completed the prerequisite tasks before you configure a run of the HTTP virtual services. See Prerequisites for running HTTP virtual services.
- Read the prerequisite information about virtualizing the Istio based services. See Prerequisites for running virtualized Istio based services in HCL OneTest Server.
- Been assigned a Member or Project Creator role in a team space.
- Started the virtual service resources as a Tester or Owner from the Resources page.
- Been assigned the Viewer, Tester, or Owner role in the project so that you can view the usage details of virtual services.
- Ran API Suites with tests that run on the virtual service resources that are configured.
About this task
After you run the virtual services that are in a project, you can view details of the usage statistics of the virtual services from the Usage page on HCL OneTest™ Server.
- Log out of the server and log in again.
- Log in after a server restart.
Procedure
-
Log in to HCL OneTest™ Server.
The team space that contains your project is displayed.
-
Open the project that contains the virtual service resources in the
test assets by clicking
.
The Overview page is displayed.
-
Click
in the navigation pane.
The Virtual Service Usage page is displayed.
The total requests that were received by all virtual services on the server are displayed as a graph.
The default view displays the usage data of the virtual services that are gathered during the previous week and grouped in an hourly interval. The total requests received from when the virtual service was started are displayed.
The metric data that is reported is for the number of requests that are received by a virtual service. The requests can be requests, messages, or other calls that are received by the virtual service.
-
Change the default settings to view the graph for the period for which you want
to view the usage.
You can change the default view by selecting an option from the following options:
Option Description 1 Hour Displays the usage data of the virtual service that are gathered during the previous hour and grouped in a 20-second interval. 1 Day Displays the usage data of the virtual service that are gathered during the previous day and grouped in an eight-minute interval. 1 Week Displays the usage data of the virtual service that are gathered during the previous week and grouped in an hourly interval. Note: This is the default view.Range Displays the usage data of the virtual service that are gathered during the date range specified in the From and To fields. You can select the date and time for both the From and To fields. The data is dynamically grouped in intervals that depend on the range selected. Note: You can refresh the view at any time to present the graph for the latest data by clicking Refresh. -
View details of the virtual service by hovering the mouse over any of the
data-points to view the details at that point.
The following details about the virtual service are displayed when you hover the mouse over the data-point:
- The date and time of the request received.
- The number of requests received.
Results
What to do next
- You can view the routing rules defined in the virtual service, agent, proxy, or intercept. See Viewing routing rules of the virtual services.
- You can stop the virtual service instances that are running. See Stopping virtual services.