Create a monitored service
A monitored service in the context of the Harness platform is a combination of a Harness service and environment. This entity can be any type of workload that is able to be monitored, including microservices. Environments represent the deployment targets such as QA, production, or any other environment where the workload will be deployed. By connecting a monitored service to change sources and health sources, you can monitor the health of the service.
The following steps explain how to create a monitored service in Harness.
Prerequisites
- Ensure that you have installed a Delegate and it can communicate with Harness, the health source, and the change source. To learn more about delegates, go to Get started with delegates.
- Create an organization if you have not already created one. To learn more about organizations in Harness, go to Create organizations and projects.
Create a project
To create a project, perform the following steps:
- In Harness, select Service Reliability > Create Project.
- On the About the Project page, do the following, and then select Save and Continue:
- Name: Enter a name for the project.
- Color: Select a color theme for the project.
- Organization: Select an organization for the project. If you don't yet have an organization in Harness, and want to learn how to create one, go to Create a Harness Org.
- On the Invite Collaborators (Optional) page, in the Invite People to Collaborate field, add team members to the project.
- In the Role field, assign a role to the collaborators.
- Select Add.
- Select Save and Continue.
Your project is created.
Create a monitored service
A monitored service is a logical entity that combines a Harness service and environment. The service could be a microservice or any other workload that can be monitored. Environments represent your deployment targets such as QA, prod, and so on.
The following steps explain how to create a monitored service in Harness.
Navigate to the "Create new monitored service" page
To create a monitored service:
- In your Harness project, navigate to the Service Reliability module, and then select Monitored Services > + New Monitored Service.
The Create new monitored service page appears.
Define the monitored service
-
In the Overview section, enter the following information:
-
Type: Select Application.
-
Create or select a Service: Do one of the following:
-
If the service that you want to monitor exists, select it.
-
If you want to create a service, select + Add New, enter the following information, and then select Save.
- Name: Enter a name for the service. For example, sample_service.
- Description (Optional)
- Tag (Optional)
-
-
Create or select an Environment: Do one of the following:
-
If the environment that you want to monitor exists, select it.
-
If you want to create an environment, select + Add New, enter the following information, and then select Save.
- Name: Enter a name for the environment.
- Description (Optional)
- Tag (Optional)
- Environment Type: Select an environment type. The available options are Production and Non-Production.
-
Harness autopopulates the Monitored Service Name field by combining the service and environment names. This field is not editable.
-