Skip to content

MuleSoft AI Gateway metering

MuleSoft AI Gateway and Agent Fabric supply centralized token-metering rows for AI inference traffic routed through MuleSoft.

Release state

This guide documents the read-only mulesoft connector implemented in the platform connector surface.

Required access

Grant read-only scopes:

Scope Purpose
AnypointPlatform.Read Read Anypoint platform context.
AIGateway.Metering.Read Read AI Gateway token metering rows.
AgentFabric.Read Read Agent Fabric context.

Do not grant API deployment, policy mutation, or gateway administration scopes.

Setup

  1. Create a dedicated Anypoint integration identity.
  2. Grant only the read-only scopes above.
  3. Store the token reference in Venturi.
  4. Set ARGMIN_MULESOFT_LOOKBACK_DAYS if you need a poll window other than 30 days.
  5. In Venturi, open Administration -> Connectors -> MuleSoft AI Gateway and run Test connection.

Verification

  • Gateway metering rows appear for the expected gateway identifiers.
  • Token counts are normalized with source mulesoft_ai_gateway_metering_api.
  • Upstream read failures return no rows rather than interrupting customer traffic.

Rotation and offboarding

Rotate the Anypoint credential through MuleSoft administration. Removing the connector stops new MuleSoft AI Gateway metering syncs.