How to find and fix reliability risks with Foresight AI

Andre Newman
Sr. Reliability Specialist
Learn how to use Gremlin Foresight AI to onboard services, find and fix reliability risks, schedule TPM reports, and build reliability dashboards.
Last Updated:
 
November 4, 2026

Teams are writing and shipping code faster than ever, but with that come increased reliability risks. Gremlin Foresight AI helps you find and fix these risks before they become incidents and outages.

In this tutorial, you’ll use Foresight to take a set of services from first deployment to a tracked reliability program. You'll:

  • Onboard services from a Kubernetes application.
  • Find reliability risks and get prioritized fixes, including Kubernetes manifest diffs.
  • Verify that your applied fixes worked to improve reliability.
  • Schedule weekly reports from Foresight’s Technical Program Manager (TPM).
  • Build dashboards that show your progress over time.

This will take around 15 minutes to complete (not including the time to run reliability tests, if you choose to do so). This tutorial uses Bank of Anthos, Google's sample banking app, running on a Kubernetes cluster.

Foresight is generative AI, so its responses may differ from the examples shown here.

‍

Prerequisites

For this tutorial, you’ll need:

‍

Step 1: Onboard your services

Deploying the Gremlin agent lets you run experiments, but you need to define a service to run reliability tests, get a reliability score, and discover dependencies. You could create these yourself using the Gremlin web app or REST API, but Foresight can also create them for you.

Foresight won’t create or modify services without your explicit permission.

‍

First, confirm that your agents are reporting:

  1. Log into the Gremlin web app and navigate to Configuration > Agents.
  2. Confirm that your agents appear in the list with the Infrastructure agent type and an Active status.
A list of Gremlin infrastructure and Failure Flags agents.
Confirm your agents appear in the agents list with an Active status.

‍

Next, use Foresight to find and create your services.

  1. Log into Foresight AI and navigate to the Chat pane.
  2. Enter “Identify services in my environment that aren't already in my Gremlin team.” If you’re a member of multiple Gremlin teams, Foresight might ask you to specify which team you want to add the services to.
  3. Foresight lists the services it discovered. Depending on your environment, it may flag some services as intentionally excluded (for example, kindnet and kube-proxy on Kubernetes clusters).
  4. Foresight recommends how to proceed. Answer “Yes” to accept its recommendation, or provide additional details. Foresight asking to confirm the creation of a Kubernetes service for the discovered frontend deployment.
  5. As a safety measure, Foresight asks you to confirm certain actions. To see what the request will do, click Request details. Click Yes to approve and create the service (you can onboard multiple services at once this way). As a safety measure, Foresight asks you to confirm API actions.

    Foresight lets you know when it's created a new service.

‍

Create and add Health Checks

This step is optional for this tutorial, but is an important step in setting up your service for reliability tests.

Before you can run reliability tests on the frontend service, you’ll need to add Health Checks. You can ask Foresight to create Health Checks for you. For example, you can create a basic Health Check that monitors the URL where the frontend service is hosted:

  1. Find the external IP of the frontend service by running kubectl get service frontend and looking under the External-IP column.
  2. Ask Foresight to "Create a new Health Check that monitors [your external IP] for errors and attach it to the frontend service."

Alternatively, if you already have a Health Check you want to use, you can ask Foresight to attach it to your new services. For example: “Add my 'Bank of Anthos' Health Checks to the frontend service.”

Foresight AI responding that it added two "Bank of Anthos" health checks to the frontend service.
If you already have Health Checks, ask Foresight to attach them to your service.

‍

Step 2: Find risks and get fixes

As soon as you add your services, Gremlin evaluates them for Detected Risks. Ask Foresight which risks are the highest priority and how to fix them.

  1. Ask Foresight “What reliability risks are present in my frontend service? Order from highest severity to lowest.” List of reliability risks detected for the frontend service, along with a description of their impact.
  2. To learn how to fix each issue, ask “How do I fix these?” Foresight recommending a series of fixes for the frontend service's detected risks, specifically a readiness probe with minReadySeconds, a topology spread constraint, and a Horizontal Pod Autoscaler.
    • For Kubernetes services, Foresight can also display diffs that you can drop into your Kubernetes manifests. A code diff showing how to implement a Horizontal Pod Autoscaler for the frontend Kubernetes service.

‍

As an optional step in this tutorial, you can ask Foresight to run reliability tests on your service as long as it has Health Checks attached. This increases the comprehensiveness of Foresight's recommendations, but each test can take several minutes to run.

Remember that reliability tests inject real faults into your systems. Foresight will always ask for confirmation before running tests.

‍

Step 3: Apply fixes and validate

Now that you have your risks and action plan, apply the fixes by editing and re-deploying your Bank of Anthos manifests using your preferred coding tool.

While Foresight has been tuned for accuracy, it is generative AI and can make mistakes. Always review its output before modifying your systems.

‍

After editing and re-deploying the frontend service, ask Foresight to re-analyze it for risks. Gremlin keeps a history of risks, so Foresight can tell you which risks were fixed and which remain. For example:

  • “Which Detected Risks on frontend have been resolved?”
  • “Compare frontend’s reliability score before and after my changes.”

‍

Step 4: Set up TPM for regular reports

Foresight comes with a Technical Program Manager (TPM) that automatically reviews your Gremlin environment and generates weekly reports with recommendations. This makes it easy to stay on top of changes in your reliability score, review failed test results, and track your progress towards your reliability goals.

  1. Click the Program bar at the top of the Foresight page.
  2. Click Create Configuration.
  3. Give your program a Name, or use the default.
  4. Goals are your desired outcomes for your reliability initiatives: reducing incidents, reaching four or five nines of availability, etc. These help guide the TPM's recommendations. For this tutorial, add the following goals:
    1. "Make the frontend service redundant"
    2. "Ensure the frontend can scale to handle traffic surges"
  5. Leave the Report Period at its default of 14 days (two weeks) and the Report Day of Week at its default value of 1 (Monday).
  6. Click Submit to create the program, then click Generate Report to get your first TPM report.

After a few moments, Foresight displays your report with a comprehensive analysis of the frontend service, where its risks are, and which risks you should prioritize in order to meet your goals. Foresight also creates action items for you, called Commitments.

Foresight's TPM reports provide a comprehensive analysis of your current reliability posture and week-over-week changes, focused on your reliability goals.

‍

Manage Commitments

A Commitment is a recommended action item created from the results of a TPM report. For example, the TPM noticed that the frontend service has four open risks. These risks will become Commitments that you can track as part of your program.

  1. Click the Program bar at the top of the Foresight page and select the Commitments: Open page.
  2. Review the list of newly-created Commitments under Commitments: Open > Suggested.
  3. Click Accept to add a Commitment (such as the PodDisruptionBudget Missing risk) to your program.

Once you complete the Commitment and verify that the risk is fixed (step 3), you can click Complete to move it to the Commitments: Closed page.

Foresight lists suggested and in-progress Commitments on the Commitments: Open page. You can accept, dismiss, or complete Commitments here.

You can also ask Foresight about your Commitments:

  • “Show my current open commitments”
  • “List my open commitments by priority and severity”

‍

Step 5: Create dashboards to track your reliability progress

You've fixed a risk and set up weekly tracking. Now, build a dashboard to show your improvements. A good starting point is to create a dashboard showing your overall reliability score and per-service scores. To do this:

  1. Click the Chat bar at the top of the Foresight page.
  2. Describe the dashboard you want. For example: "Create a dashboard tracking my team's overall reliability score and per-service reliability scores for the past month."
  3. Click Save to team dashboards to save the dashboard to the Dashboards tab.
A dashboard created by Foresight showing a team's current reliability score as a gauge, a line chart showing changes in score, and a list of the team's services with current scores
"Create a dashboard tracking my team's overall reliability score and per-service reliability scores for the past month."

The next time you expand this dashboard, it will automatically refresh with up-to-date information.

Not sure what to build? Ask Foresight “What dashboards should I create?”

‍

Do more with Foresight

You've now onboarded services, received a prioritized list of risks, verified fixes, scheduled a weekly TPM report, and created a dashboard to track your progress. Together, these create a repeatable loop: Foresight finds risks, your team fixes them, and Foresight confirms each fix and reports the result.

To keep building on that loop:

  • Onboard your remaining services and attach Health Checks so Foresight can run reliability tests on them.
  • Update your TPM goals as your reliability targets change.
  • Share saved dashboards with leadership to show reliability trends over time.

If you aren’t sure whether Foresight can perform a task, just ask it! Foresight knows its own capabilities and tells you when your request falls outside them.

No items found.
On this page
Back to top
Want to learn more about how to use Gremlin? Click here to access our complete tutorial library.
See more tutorials

Avoid downtime. Use Gremlin to turn failure into resilience.

Gremlin empowers you to proactively root out failure before it causes downtime. See how you can harness chaos to build resilient systems by requesting a demo of Gremlin.

Product Hero ImageShape