Installing and configuring the DevOps Test Hub Results Data plugin
You must install and configure the DevOps Test Hub Results Data plugin that is packaged along with HCL DevOps Test Hub (Test Hub) to view and analyze the log data in Grafana. You can view the test log data that is generated when you run a test from Test Hub in a Grafana dashboard.
Before you begin
Procedure
-
Perform the following steps to install the DevOps Test
Hub Results Data plugin:
- Download the DevOps Test
Hub Results Data
plugin from the following URL:
<your server address>/test/artifacts/grafana/devops-testhub-datasource.zip
- Install the DevOps Test Hub Results Data plugin by extracting the compressed file into your Grafana plugin directory.
- Restart the Grafana server.
- Download the DevOps Test
Hub Results Data
plugin from the following URL:
-
Perform the following steps to configure the data source by using the DevOps Test
Hub Results Data plugin:
- Enter the address of the local Grafana server in your web browser: Important: You must sign in with http://localhost:3000 or http://localhost:8080 URLs to use the plugin.
- Follow these steps to verify that the DevOps Test
Hub Results Data plugin is
available in Grafana:
- Click in the left navigation panel of Grafana.
- Enter DevOps Test Hub Results Data in the search bar in the Plugins tab.
- Click DevOps Test
Hub Results Data
in the search results.
The DevOps Test Hub Results Data page is displayed. You can find the links to Test Hub documentation and the description of the plugin on this page.
- Perform the actions indicated in the following table to create an
instance of a data source in Grafana by using the DevOps Test
Hub Results Data plugin on the
DevOps Test
Hub Results Data
page:Note: Users with the role of a server administrator can add data sources.
Options Actions If you want to create an instance of the data source in Grafana by using the proxy connection Perform the following steps: - Click Add new data
source.
The data source configuration panel is displayed.
- Click Default if you want to set the data source as the default data source in Grafana.
- Enter a name to identify the data source.
- Enter the URL of Test Hub in the Server field.
- Enter the token that you created in Test Hub.Note: The Use proxy is enabled by default.
- Click Save and
test.Note: If the server certificate is self-signed, an error message is displayed. You must add the CA certificate to establish the connection with the server.
- Perform the following steps to add the CA
certificate:
- Enable With CA Cert by using the toggle icon.
- Add the CA certificate in the CA Cert field that you saved during the installation of Test Hub.
- Click Save and test.
If you want to create an instance of the data source in Grafana with additional Helm parameters Important: Before you install Test Hub, you must use an additional Helm command parameter router.allowedOrigin during the installation. You can also run this command after installation. See the Additional Helm parameters topic in the related information section.Perform the following steps: - Click Add new data
source.
The data source configuration panel is displayed.
- Click Default if you want to set the data source as the default data source in Grafana.
- Enter a name to identify the data source.
- Enter the URL of Test Hub in the Server field.
- Enter the token that you created in Test Hub.
- Disable Use proxy by using the toggle icon.
- Click Save and test.
- Click Add new data
source.
- Enter the address of the local Grafana server in your web browser: