Enable Background Metrics Access
A tenant administrator enables a dedicated read-only metrics connection so Alerts can evaluate metrics after the interactive user session ends. Your permission to validate or preview a query is separate from this background connection.
Enabled metrics-rule writes require a ready connection. A disabled draft and a lifecycle subscription can be saved without it.
Enable the Connection
- Open Operate → Alerts → Set up metrics alerting in the Admin Console.
- Review connection status and any missing setup permissions. If setup is unavailable, ask a tenant administrator with the listed permissions to perform it.
- Optionally select a Health-warning destination. Send a recovery notification is off by default.
- Select Enable metrics alerting.
- Wait for a ready connection before enabling the rule. If an operation remains pending, use Resume pending setup; it resumes the original request and settings.
The status response reports whether setup and cleanup are allowed for the current caller. Do not grant broad administrative permissions merely to make a rule-authoring request succeed. See the exact enrollment API contract for automation.
Interpret Status
| Status dimension | Values | Meaning |
|---|---|---|
| Readiness | not-enrolled, setting-up, ready, setup-failed |
Whether provisioning has established the connection. |
| Health | healthy, retrying, needs-attention |
Whether background credential access is working. |
| Operation | Pending, completed, or failed operation information | Whether a setup, reconnect, or cleanup request finished. Inspect the returned state. |
| Cleanup | cleanupPending and operation IDs |
Previous resources still need retirement. A working active connection can coexist with pending cleanup. |
The Admin Console summarizes these dimensions in its Metrics access status and Connection settings. A ready connection can later need attention. A transient access failure does not remove enrollment or establish recovery for existing firing alerts. Sustained credential problems can become needs-attention after five minutes. Health information may not refresh while no metrics rules are active. Check connection health again after enabling a rule.
Reconnect and Clean Up
Open Connection settings and select Reconnect credentials when replacing revoked credentials or deliberately rotating them. Review Replace metrics credentials?, then confirm with Replace credentials. The replacement connection is verified before switching; if verification fails, the current connection is kept. Reconnect is not a remedy for a temporary outage. Refresh status after the request; an HTTP success alone does not mean provisioning completed.
Under Unused connection resources, use Remove unused resources (N) for previous resources reported as pending. Cleanup targets the returned operation IDs and preserves the active connection. It is not a general “turn off metrics alerting” operation.
Configure Health Notifications
In Connection settings → Health notifications, choose a destination and select Save notification settings. To detach it, select No external notifications and confirm Stop external health warnings for this connection.
These warnings are independent of rule subscriptions and silences. Without a destination, inspect connection status in the Admin Console. Delivery problems with health warnings are also separate from metrics readiness.