connect_metrics_source
Propose connecting the Prometheus-compatible metrics source Ankra derived from this cluster's installed addons (the one a query_prometheus refusal named). Pass EXACTLY the provider and endpoint from that refusal - both are re-derived server-side at execution and the call is refused on any mismatch, so never invent or edit them. The action requires an organisation admin's confirmation; on confirm the endpoint is first verified with the existing read-only probe (a failed probe writes nothing), then the source is registered in the resource graph as the cluster's prometheus_metrics source, inheriting GitOps, audit, drift detection and IaC export. An in-cluster Service endpoint needs no credential - the agent relay dials it from inside the cluster - so never ask the user for one. Do not use this to repair a misconfigured existing source. If the store runs OUTSIDE the cluster, or the derived endpoint does not match what the release actually renders, re-propose the correct endpoint with endpoint_is_operator_supplied=true: derivation only sees installed addons, so neither case can be derived and neither is a reason to refuse the connection. Admin confirmation and the read-only probe apply either way.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | Yes | The endpoint URL. Copy verbatim from the refusal's derived-candidate sentence, or supply the correct one with endpoint_is_operator_supplied=true when the store is external or the derived endpoint is wrong. Must be an http:// or https:// URL. Private and in-cluster addresses are fine; loopback, link-local (including the cloud metadata address) and multicast are refused. | |
| provider | Yes | The provider. Copy verbatim from the refusal's derived-candidate sentence, or supply it with endpoint_is_operator_supplied=true. | |
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. | |
| endpoint_is_operator_supplied | No | Set true ONLY when a person supplied this endpoint rather than copying Ankra's derived candidate. Derivation reads INSTALLED ADDONS, so it cannot name a store running outside the cluster (a managed OpenSearch, a hosted Prometheus) - that is the case this exists for. It skips the derived-candidate equality check ONLY: organisation-admin confirmation and the read-only probe still run, and the confirmation shows the endpoint as supplied rather than derived. Never set it to pass off an endpoint you inferred yourself. |