Prometheus Configuration

Set Prometheus configuration

Configure Prometheus URL and authentication for a cluster or region. Requires either cluster_id or (region_code + user_id).

post/api/v1/prometheus/config

Request

  • Base URL
    http://localhost:8080
  • Auth
    API key in header Authorization

Request body

auth_type'none' | 'basic' | 'bearer' required
bearer_tokenstring
cluster_idstring
passwordstring
region_codestring
urlstring required
user_idstring
usernamestring

Example request

{
  "auth_type": "basic",
  "bearer_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "cluster_id": "cluster-123abc",
  "password": "secure_password",
  "region_code": "us-west-2",
  "url": "https://prometheus.example.com:9090",
  "user_id": "user-456def",
  "username": "prometheus_user"
}

Response

Configuration saved successfully

messagestring

Example response

{
  "message": "Prometheus configuration saved successfully"
}

Changes

No recorded changes to this operation across all 1 revision of this API.