Metrics

Set the external impact-metrics source.

Changed on

Enterprise feature

Updates the configuration of the external impact-metrics source (any Prometheus-compatible endpoint).

post/api/admin/impact-metrics/external-source

Request

  • Base URL
    https://app.unleash-instance.example.com
  • URL
    https://app.unleash-instance.example.com/api/admin/impact-metrics/external-source
  • Auth
    • API key in header Authorization
    • or HTTP bearer

Request body

enabledboolean required

Whether the external impact-metrics source is active. When true, url must be a valid non-empty URL.

urlstring

Base URL of the external impact-metrics source. Basic-Auth credentials may be embedded in the URL (e.g. https://user:pass@metrics.example.com); they are extracted into an Authorization header on outbound requests. Required (non-empty, valid URL) when enabled is true; an empty string is discarded when enabled is false.

Example request

{
  "enabled": true,
  "url": "https://metrics.example.com"
}

Response

This response has no body.

Changes