After you add and configure monitoring sources in IBM® DevOps Test Hub (Test Hub), you can view the resource
monitoring usage data in a graph for each monitored source and for each of the selected
counters on Grafana.
You must have completed the following tasks:
- Added and connected a monitoring source, and an agent when required, to your
project to view the list of available sources and agents, and the resource
monitoring usage data in your project.
- Configured a test with advanced parameters to view persistent usage data in a
graph. See Configuring a test.
- Installed the DevOps Test
Hub Results Data plug-in and
created an instance of data source for DevOps Test
Hub Results Data. See Installing and configuring the DevOps Test Hub Results Data plugin.
- Opened Grafana with one of these ports:
http://localhost:3000 or
http://localhost:8080.
- Started the test execution on Test Hub.
After you add a monitoring source to Test Hub, you must configure the
source, and select monitoring counters. You can view the resource monitoring usage
data for each of the selected counters in a graph on Grafana. You must configure the
test to collect and view the resource monitoring usage data that is collected for a
defined timeframe. During the test execution, the data can be seen with the default
time range on Grafana. After the test execution is complete, you must carefully
select the time range so that it corresponds to the test execution start and end
time.
-
Click Explore in the Toggle menu
in Grafana.
The Data query page with the default data source is
displayed.
-
Select DevOps Test
Hub Results Data from the list
of data sources.
-
Select the type of query by performing any of the following actions when you
want to view statistics from the test data:
To view |
Actions |
The variation of a metric over time. |
Perform the following steps:
- Click the time-series statistics tab icon
.
- Go to Step 4.
|
The values of the metric that are computed over the
entire time range. |
Perform the following steps:
- Click the overall statistics tab icon
.
- Go to Step 4.
|
-
Define the scope of the query by performing the actions indicated in the
following table:
Options |
Actions |
If you want to use the data
from the team space |
Perform the following
steps:
- Select the Team Space
option.
- Select the team space from the list of team
spaces that are listed.
- Select Resource
Monitoring from the list in the
Service option.
- Go to Step 5.
|
If you want to use the data
from your project |
Note: You can select the project as the scope for your
query if you want to view any of the supported query
types. Perform the following steps:
- Select the Project
option.
- Select the project from the list of projects
that are listed.
- Select the Service
option.
- Select Resource
Monitoring from the list
- Go to Step 5.
|
-
Optionally, enter a name for the metric that helps you identify it in the
Metric field.
-
Select a metric from the list of metrics in the row of the
Metrics option.
-
Select the aggregation factor for the metric. For example, select
Sum to add all values of the metric.
-
Optionally, click the Cumulated toggle button to add the
values for the metric cumulatively over time.
Note: The Cumulated is set to off.
This is the default selection.
-
Add another metric by clicking the Add metric icon
.
Note: If you added multiple metrics and you want to
remove a metric, you can click the
Remove metric
icon

of the
metric.
-
Click Add query if you want to combine queries from
different projects, results ids, or with different properties in the query
filters.
-
Click Run query.
A graph is displayed for the selected metrics.
You viewed the resource monitoring usage data in a graph for each monitored
source and for each of the selected counters on Grafana.
You can build a dashboard including graphs, charts,
gauges, and tables to get customized visual representations of your resource monitoring
usage data. See Dashboard overview.