This page describes how to configure general settings for Mainframe Assessment Tool and modify default AI features for new assessments.
The modified settings don't apply to existing assessments. To use the modified settings, create a new assessment.
Configure general settings
To configure general settings for your assessment, follow these steps:
Click the settingsSettings icon.
To edit your preferences for Cloud Logging and Google Analytics, in the General settings section, do the following:
To turn off Logging, click the Enable Cloud Logging toggle to the off position. By default, this setting is enabled.
For more information, see Cloud Logging documentation.
To turn off Google Analytics, click the Enable Google Analytics toggle to the off position. By default, Google Analytics is enabled. Changes to this setting only take effect after you reload the page.
View the Google Cloud project field to see the Google Cloud project ID used by Mainframe Assessment Tool. You cannot edit this field in the UI. To use a different project, see Override the Google Cloud project.
For Serving tier, select a Gemini Enterprise Agent Platform serving tier. Default is Standard.
The serving tier setting determines the inference and consumption model applied to Gemini model calls during mainframe assessments. For more information about Gemini Enterprise Agent Platform serving tiers, see PayGo.
Click Save settings.
Override the Google Cloud project
By default, Mainframe Assessment Tool uses the Google Cloud project where your instance is deployed. To override the project used for your assessments, follow the instructions for your deployment environment.
Before you begin
To prepare for overriding the Google Cloud project, complete the following tasks:
- Grant necessary permissions. The permissions you need depend on how you
deployed Mainframe Assessment Tool:
- On a Compute Engine VM instance, you need permission to set custom metadata on the instance. For details on the required roles, see Set and remove custom metadata.
- On a GKE cluster, you need permission to update
deployments in the cluster, and you must configure the
kubectlcommand-line tool to connect to the cluster. For more information, see Configure cluster access for kubectl.
- Provide target project access. Grant the service account used by Mainframe Assessment Tool the required roles in the target project.
Override the project on a Compute Engine VM instance
To override the Google Cloud project on a Compute Engine VM instance, add
the MAT_GCP_PROJECT_OVERRIDE metadata key and set its value to your target
project ID by running the following gcloud command:
gcloud compute instances add-metadata INSTANCE_NAME \
--metadata=MAT_GCP_PROJECT_OVERRIDE=PROJECT_ID \
--zone=ZONE
To remove the override, remove the metadata key by running the following gcloud command:
gcloud compute instances remove-metadata INSTANCE_NAME \
--keys=MAT_GCP_PROJECT_OVERRIDE \
--zone=ZONE
Replace the following:
INSTANCE_NAME: the name of your VM instance.PROJECT_ID: your target Google Cloud project ID.ZONE: the zone where your VM instance is located.
Mainframe Assessment Tool then falls back to your saved project ID, if you have one, or to the project where the instance is deployed. If you set or remove the metadata key on a running VM, you must restart the VM for the changes to take effect.
Override the project on a GKE cluster
To override the Google Cloud project on a GKE deployment,
set the MAT_GCP_PROJECT_OVERRIDE environment variable on the backend
container:
kubectl set env deployment/mat-apps --containers=backend \
MAT_GCP_PROJECT_OVERRIDE=PROJECT_ID --namespace=VERSION
To remove the override, unset the environment variable by appending a hyphen (-):
kubectl set env deployment/mat-apps --containers=backend \
MAT_GCP_PROJECT_OVERRIDE- --namespace=VERSION
Replace the following:
PROJECT_ID: your target Google Cloud project ID.VERSION: the Mainframe Assessment Tool version deployed on the cluster (for example,mainframe-assessment-3-5-0).
Mainframe Assessment Tool then falls back to your saved project ID, if you have one, or to the project where the instance is deployed. Updating the environment variable restarts the pod with the project override applied. Because Mainframe Assessment Tool runs as a single pod, it is briefly unavailable while the new pod starts.
Configure default AI features for new assessments
Mainframe Assessment Tool lets you customize the default parameters for AI insights in your assessments. By default, AI insights are enabled.
To configure AI features in new assessments, follow these steps:
Click the settingsSettings icon.
To generate paragraph-level summaries for COBOL code, select Detailed summaries.
By default, this option is selected when AI analysis is enabled.
To generate test cases for the assessment specifications generated by Gemini, select Test cases.
By default, this option is not selected when AI analysis is enabled.
For Additional generation guidance, enter text to add to the Gemini prompts during AI generation.
Click Save settings.
Check system health
Mainframe Assessment Tool checks whether your project can run assessments. The check confirms that the service account holds the required IAM roles, and that every Gemini model responds at each endpoint that an assessment can use. Mainframe Assessment Tool runs the check at startup. The check doesn't block assessments.
To review the results of the check, follow these steps:
Click the settingsSettings icon.
In the System health section, review the following:
Checked identity: the service account that the check ran as.
IAM permissions: whether that service account holds each required role.
Models: the endpoints that each model responds at. For a model that doesn't respond, Mainframe Assessment Tool names the endpoint, the cause, and the action to take.
Optional: To run the check again, for example after you grant a role or change your network configuration, click Re-check.
If the check finds an issue, Mainframe Assessment Tool shows a notification on every page until you fix or dismiss the issue.
If the Cloud Resource Manager API isn't enabled on your project, Mainframe Assessment Tool can't verify IAM permissions and reports this in the System health section. To enable the API, see Enable APIs.
Optional: Perform actions
This section describes how to perform actions, such as clearing the Gemini cache and downloading your logs.
To perform actions, follow these steps:
Click the settingsSettings icon.
To clear the Gemini cache, click Clear model cache.
To download your Mainframe Assessment Tool logs, click Download support bundle.
The support bundle contains the Mainframe Assessment Tool logs as a zip file, which you can share with Google Cloud support to troubleshoot issues.
Disable AI insights for assessments
You can disable AI analysis to prevent AI insights from appearing on the Assessments page.
To disable AI analysis for assessments, follow these steps:
In the Default AI features in new assessments section, clear Enable AI insights.
Click Save settings.
Track Agent Platform costs using custom metadata labels
Mainframe Assessment Tool automatically adds custom metadata labels to all Agent Platform requests to help you track and analyze costs. In your billing report, you can use these labels to filter costs to better understand and optimize your Agent Platform usage. The costs are updated in the billing report within 24 hours of usage, but in some cases can take longer.
Filter costs in your billing report with the following labels:
mat-version: version of Mainframe Assessment Tool.mat-host: host environment of the Mainframe Assessment Tool instance. For example, Compute Engine VM or Google Kubernetes Engine.mat-action-type: type of action performed by Mainframe Assessment Tool.mat-schema: type of asset processed. For example,COBOLorJCL.mat-target: deployment target of the Mainframe Assessment Tool instance.mat-run-id: unique ID of the assessment.
To track usage by using one or more of these filters in the billing report, see Use filters to refine data.
For more information about labels in Agent Platform, see Custom metadata labels.
What's next
- Learn how to create an assessment.