24x7 Service Guard
Most enterprises use multiple monitoring and verification tools for each stage of their microservice deployment, and multiple tools for monitoring the live microservice in production. Detecting and investigating regressions and anomalies across these tools consumes a lot of time. For those of you tasked with monitoring microservices, the following image will be familiar.
Harness solves this problem with Harness 24x7 Service Guard.
Harness 24x7 Service Guard:
- Collects all of your monitoring and verification tools into a single dashboard.
- Applies Harness Continuous Verification unsupervised machine-learning to detect regressions and anomalies across transactions and events.
- Lets you drill-down to the individual issue and open it in the related tool.
Harness 24x7 Service Guard gives DevOps operational visibility across all their monitoring tools in all their deployment environments.
24x7 Service Guard's automatic anomaly and regression detection allows you to automatically rollback an application when end-users are impacted, without configuration, thresholds, or rules.
24x7 Service Guard and Harness Workflow Verification Work Together
24x7 Service Guard is a new addition to Harness' existing deployment verification functionality, as described in Continuous Verification. Harness Workflow verification steps provide verification of Harness deployments and the running microservice for the first 15-30 minutes. 24x7 Service Guard provides detection of your microservices from then on, catching problems that surface minutes or hours following deployment.
The following image shows how the Continuous Verification dashboard includes both 24x7 Service Guard and Harness Deployments continuous verification.
- 24x7 Service Guard detection.
- Harness Deployments continuous verification.
Here's a 2min video that explains Harness 24x7 Service Guard:
Using 24x7 Service Guard
To use 24x7 Service Guard, in Harness, click Continuous Verification.
The applications configured with 24x7 Service Guard appear. In this example, we have two applications:
Let's look at the first application in detail. The following image describes the 24x7 Service Guard dashboard for the application.
- Monitoring sources: Verification and metrics providers, such as AppDynamics, etc. For a list of the verification providers supported by Harness, see Continuous Verification.
- Heat map: The heat map is generated using the application and the monitoring sources. Each square is a time segment.
- Time resolution: You can go high-level (for example, 30 days) or low-level (12 hours).
- Performance regressions: Red and yellow are used to highlight regressions and anomalies. The colors indicate the Overall Risk Level for the monitoring segment.
- Transactions analysis: Click a square to see the machine-learning details for the monitoring segment. The analysis details show the transactions for the monitoring segment. High-risk transactions are listed first.
- Drill-in to find the cause of the regression or anomaly: When you click the dot for a transaction, you get further details and you can click a link to open the transaction in the monitoring tool. This allows you to go into the monitoring tool and find the root cause of the regression (specific queries, events, etc).
Set Up 24x7 Service Guard
The following procedure assumes that you have a Harness application set up, and a Harness Verification Provider configured using one of the supported verification or monitoring providers. All you need to get started is a supported verification or monitoring tool that is currently monitoring your microservice or application.
For information on setting up a Verification Provider, see Add Verification Providers, for Harness applications, see Set Up a CD Pipeline, and for information on verification provider support, see Continuous Verification.
To set up 24x7 Service Guard in your Harness application, do the following:
- In Harness, click Setup, and then open your Harness application.
Typically, the application has separate environments for each stage of deployment, such as Dev, QA, and Production, and uses different monitoring tools (or configurations) for each stage. For each environment, you can connect the related monitoring tool.
- Click Environments.
- Select a Non-Production or Production Environment. On the Environment page, you will see the 24x7 Service Guard component.
- Click Add Service Verification, and then click the name of the monitoring tool you want to use. In this example, we will use AppDynamics.
The verification tool dialog appears.
- Fill out the dialog. The dialog has the following fields.
The name that will identify this service on the Continuous Verification dashboard. Use a name that indicates the environment and monitoring tool, such as AppD Prod.
The Harness Service to monitor with 24x7 Service Guard.
AppDynamics Server (AppDynamics only)
The AppDynamics Verification Provider configured in Harness. For more information, see AppDynamics Verification.
New Relic Server (New Relic only)
The New Relic Verification Provider configured in Harness. For more information, see New Relic Verification.
The Application Name used by the monitoring tool.
Tier Name (AppDynamics only)
The dropdown is populated with tiers from the application you selected. Pick the tier from which you want usage metrics, code exceptions, error conditions, and exit calls. In AppDynamics, the tiers are displayed in the Tiers & Nodes page:
Specify the sensitivity of the failure criteria. When the criteria is met, the workflow Failure Strategy is triggered.
Enable Continuous (24x7) Verification
Enable this setting to turn on 24x7 Service Guard. If you simply want to set up 24x7 Service Guard, but not enable it, leave this setting disabled.
Click TEST. Harness verifies the settings you entered.
In 24x7 Service Guard, the new configuration is listed according to its Service name (in this example, the Service name Dev-CV-Todolist).
In a few minutes, the Continuous Verification dashboard will display the 24x7 Service Guard configuration.
No deployment is needed to add the 24x7 Service Guard configuration to the dashboard.
Using 24x7 Service Guard for Quick Workflow Steps
Once you have set up 24x7 Service Guard in an Environment, you can use the 24x7 Service Guard setup to quickly configure the Verify Service step in any workflow that uses the Environment.
For example, the following Canary Deployment Workflow uses an Environment with 24x7 Service Guard set up. In Phase 1 of the Workflow, in Verify Service, you can add a Verification Provider.
Under Verify Service, click Add Verification.
In the Add Command dialog, under Verifications, select a verification provider that is also used in the 24x7 Service Guard of the Environment used by this Workflow. For example, AppDynamics.
The AppDynamics dialog appears.
At the top of the dialog, click Populate from Service Verification, and then click the name of the 24x7 Service Guard configuration you want to use.
The dialog is automatically configured with the same settings as the 24x7 Service Guard configuration you selected.