Upgrade from OverOps to CET
Transition services from OverOps to Continuous Error Tracking.
Upgrading your service from OverOps to CET involves the following steps:
Choose a service suitable for onboarding to CET, preferably starting with a non-production service.
Create a project in the CET.
Set up a monitored service.
Install the Harness Error Tracking Agent and configure it with the monitored service.
After successfully installing the agent and ensuring that your application is running, you'll be able to view the events reported by the agent.
Configure notifications for timely event alerts.
Select a service for CET onboarding
Follow the steps below to choose an appropriate service for onboarding to CET.
Select non-production service to onboard onto Harness CET. For instance:
Name: cet-migration
Environment: Staging2
Get a Harness account from the CSM by submitting a request using support@harness.io.
Request a CET license for your Harness account.
Set up a project
Follow the steps below to set up a project:
Log in to your Harness account and navigate to the Error Tracking module.

Setup New Project Create a project under the ‘default’ organization.

Create New Project Once your project is created, navigate to it to continue the setup.

Select New Project
Add a monitored service
A Harness monitored service combines a specific service with an environment to monitor code-level exceptions and errors collected by the Error Tracking Agent. Follow these steps to create a monitored service and specify the service and environments for tracking code errors and exceptions:
In your Harness project, navigate to the Continuous Error Tracking module, and then select Monitored Services.
Select + Create Monitored Service.
The Create New Monitored Service page appears.

Navigate to Monitored Services Select a service. A Service represents your microservices or other workloads. To add a new service do the following:
Select + New Service.

In the New Service dialog, enter a name for the service, optional tag, and optional description, and then select Save.

Select an environment where the Harness Service is deployed (QA, prod, and so on). To create a new environment:
Select + New Environment.

In the Create Environment dialog, enter a name for the new environment, select an environment type such as production or pre-production, and then select Save.

Harness auto creates the monitored service name by combining the service and environment names that you have entered.

Navigate to Monitores Services Select Save.
The new monitored service appears on the Monitored Services page.

Create a token for the Error Tracking Agent
Follow these steps to create a token for the Error Tracking Agent:
Expand PROJECT SETUP and then select Tokens.
On the Code Error Settings page, select Generate New Token.

Create Token In the New Token dialog, enter a name for the token and select Generate.
A new authentication token is generated and displayed in the Key field.
Copy the token to clipboard. This token is used in the Error Tracking Agent configuration file.

Generate new token Select Close.
The newly created token appears on the list of tokens.
Install an Error Tracking Agent
The Harness Error Tracking Agent must be installed on a Java application to capture application code and variables. This native agent library is attached to the Java Virtual Machine (JVM)/Common Language Runtime (CLR) during runtime. It can be deployed into any Kubernetes container without altering the image. The Agent fingerprints the program code loaded into the JVM/CLR and captures the complete state of the code and the host/container in order to identify anomalies. The Harness Error Tracking Agent must be installed on Java applications, allowing it to capture application code and variables. This native agent library attaches itself to the Java Virtual Machine (JVM) or Common Language Runtime (CLR) during runtime. It can be deployed within any Kubernetes container without altering the image. The Agent profiles the program code loaded into the JVM/CLR and captures the complete state of the code and the host/container to identify anomalies.
The following sections provide details about:
Compatibility and requirements to install an Error Tracking Agent.
Latest releases
Instructions to install the Error Tracking Agent on a Java Application.
Compatibility and requirements
To learn about supported operating systems such as Java Virtual Machine (JVM) and JVM containers, go to Continuous Error Tracking Agent compatibility.
Latest releases
Install an Error Tracking Agent
Depending on your setup and needs, there are multiple ways to install and deploy an Error Tracking Agent on a Java application. You can install the Agent to monitor your application in the following ways:
As a standalone installation outside Harness.
By modifying your Docker image.
Using an init container.
If you have additional agents running on your application, the Error Tracking Agent should appear at the end of the VM arguments list before specifying the main class or jar.
This option lets you install the Error Tracking Agent as a standalone. Perform the following steps to install the Agent:
Download the latest version of the Agent from here.
Extract this version to a folder of your choice. For example
/home/user. The contents of the archive will be inside a folder named Harness. You'll require the path to the Agent when starting your application. An example for the Agent path would be,/home/user/harness/lib/libETAgent.so.Add JVM arguments which instruct the JVM to load the Agent.
This is done by adding -agentpath:/home/user/harness/lib/libETAgent.so to the application startup. For example:
This parameter can also be specified using JAVA_TOOL_OPTIONS. For example:
4. Set the Agent environment variables so that your application can map to a Harness Service.
Required Environment Variable
Description
Example
ET_COLLECTOR_URL
URL to the Error Tracking collector.
https://collector.et.harness.io/prod1
ET_APPLICATION_NAME
Name of your application or Service.
cetmigration
ET_DEPLOYMENT_NAME
Deployment or version number of your application or Service. When your application or Service is updated to a new version, it's recommended that you update this variable as well, so that the Error Tracking Agent can identify when new errors are introduced.
1
ET_ENV_ID
ID of your Harness Environment.
staging
ET_TOKEN
ET Agent Token created on Harness.
b34*****-****-****-****-***********42a
For example:
Restart your application after installing the Error Tracking Agent.
This option uses a Dockerfile to copy an Error Tracking Agent to the Docker image at build time. When your Java application is running using Docker, perform the following steps to install the Agent:
Download and extract the Agent in your Dockerfile. For example:
Set the Agent environment variables in the Dockerfile.
Required Environment Variable
Description
Example
ET_COLLECTOR_URL
URL to the Error Tracking collector.
https://collector.et.harness.io/prod1
ET_APPLICATION_NAME
Name of your application or Service.
cetmigrationpoc
ET_DEPLOYMENT_NAME
Deployment or version number of your application or Service. When your application or Service is updated to a new version, it's recommended that you update this variable as well, so that the Error Tracking Agent can identify when new errors are introduced.
1
ET_ENV_ID
ID of your Harness Environment.
staging
ET_TOKEN
ET Agent Token created on Harness.
b34*****-****-****-****-***********42a
For example:
Add JVM arguments to the Docker image, which instructs the JVM to load the Agent. This is done by adding
agentpath:/harness/lib/libETAgent.soto the applicationENTRYPOINT. For example,ENTRYPOINT java -agentpath:/harness/lib/libETAgent.so -jar yourapp.jar. This parameter can also be specified usingJAVA_TOOL_OPTIONS, for exampleENV JAVA_TOOL_OPTIONS="-agentpath:/harness/lib/libETAgent.so".Once the Dockerfile is updated, rebuild the Docker image and restart any containers running on it to start monitoring using Error Tracking.
When your Java application is running on Kubernetes, you can use an init container to automatically install the Agent at runtime without changing the existing images. The image is publicly hosted in Docker Hub.
Consider the following Kubernetes deployment example for a Java application:
By using a shared volume, the init-container executes and installs the harness-et-agent in the path /opt/harness-et-agent. This installation is then mounted into the target container my-javaapp-container using the volume mount. To properly configure and optimize the functionality of the Agent, ensure to set the variables listed in the following table:
Required Environment Variable
Description
Example
JAVA_TOOL_OPTIONS
JVM Option which instructs the JVM to load the Agent at the mounted volume location.
-agentpath:/opt/harness-et-agent/harness/lib/libETAgent.so
ET_COLLECTOR_URL
URL to the Error Tracking collector.
https://collector.et.harness.io/prod1
ET_APPLICATION_NAME
Name of your application or Service.
cetmigrationpoc
ET_DEPLOYMENT_NAME
Deployment or version number of your application or Service. When your application or Service is updated to a new version, it's recommended that you update this variable as well, so that the Error Tracking Agent can identify when new errors are introduced.
1
ET_ENV_ID
ID of your Harness Environment.
staging
ET_TOKEN
ET Agent Token created on Harness.
b34*****-****-****-****-***********42a
If the agent is already installed as part of your docker image, simply set the corresponding environment variables without the need of an init container.
Verify agent connection
After installing Error Tracking Agent, you should verify that it is connected to Harness. To verify the Error Tracking Agent connection, do the following:
Expand PROJECT SETUP and then select Agents.
A comprehensive list of Error Tracking Agents is displayed along with the information such as service name, environment, deployment version, Agent version, Agent status, token name, and so on. Ensure that the Agent that you installed is listed, and the status is CONNECTED.
Configure notifications
Configure notifications for timely event alerts. To learn how to notifications, go to Notifications.
Next steps
Identify and prioritize error events using Events dashboard.
Last updated
Was this helpful?