GenAI tile and MCP metrics missing from Tanzu Hub services instance UI.
search cancel

GenAI tile and MCP metrics missing from Tanzu Hub services instance UI.

book

Article ID: 440182

calendar_today

Updated On:

Products

VMware Tanzu Platform Core VMware Tanzu Platform - Hub

Issue/Introduction

  • When using Tanzu Hub, checking Marketplace -> Service Offerings -> MCP Gateway does not show any metrics.
  • Also, from Tanzu Hub, checking Services -> select a Service hosted on the GenAI tile -> Health tab does not show metrics

Environment

Tanzu Hub versions 10.4.1 and below.

Cause

Metrics labels were not available in the AI Services tile prior to version 10.3. They have been added as of 10.4, but during upgrade, do not have a default configuration.

Resolution

First, validate that the metrics are present on the Hub TAS Agent VM. To do so:

  • SSH to the hub_tas_agent VM
  • sudo -i
  • curl -i -k 'https://localhost:9090/api/v1/query'   --data-urlencode 'query=mcp_method_calls_total' --cacert "/var/vcap/jobs/prometheus/config/certs/metrics_client_ca.pem" --cert /var/vcap/jobs/prometheus/config/certs/metrics_client.pem --key /var/vcap/jobs/prometheus/config/certs/metrics_client.key

After confirming that the metrics are present, go to Ops Manager AI Services tile > Advanced Config > Metrics labels and confirm that all of the following are present:

cf-app-guid,cf-app-name,cf-service-instance-guid,cf-service-instance-name,cf-plan-id,cf-plan-name,cf-service-id,cf-service-name,cf-space-guid,cf-space-name,cf-org-guid,cf-org-name

If any of those are missing, add them in and apply changes.