Skip to content

HTTP REST Api endpoint tls_certs

hwassman edited this page Nov 2, 2026 · 1 revision
  • /tls_certs

    • Supported for Prometheus API (HTTPS only)
    • Returns the bridge's TLS certificate and private key as a .tar.gz archive so that a remote Prometheus host can download them in one step.
    • The archive layout matches exactly the per-suffix subdirectory structure used by /scrape_configs.yml — extracting into /etc/bridge_ssl/certs/ places the files at the paths already referenced in the generated tls_config block.
    • Returns HTTP 503 if the bridge is not running HTTPS or TLS settings are incomplete.
    • Further information can be found in the article Generate scrape configurations for multiple systems.

Query Parameters

Parameter Type Default Description
job_suffix String (^[A-Za-z0-9_.:-]{1,64}$) (empty) When set, cert and key are placed inside a <suffix>/ subdirectory in the archive (leading _ or . stripped). Must match the same suffix used with /scrape_configs.yml.

Archive Layout

job_suffix Archive contents Extract path (after tar -xz -C /etc/bridge_ssl/certs/)
(none) cert.pem, privkey.pem /etc/bridge_ssl/certs/cert.pem
_cluster2 cluster2/cert.pem, cluster2/privkey.pem /etc/bridge_ssl/certs/cluster2/cert.pem

Usage

# Create the cert store root if it does not yet exist
mkdir -p /etc/bridge_ssl/certs/

# Download and extract certs for cluster2
curl -sf "https://<bridge_ip>:9250/tls_certs?job_suffix=_cluster2" \
  -k -u scale_admin:<password> \
  | tar -xz -C /etc/bridge_ssl/certs/

Note: The target directory (/etc/bridge_ssl/certs/) must exist before running tar. tar creates subdirectories inside it but will not create the root itself.

User Guide

Planning your Monitoring Setup

Installation

Configuration

Maintenance

Troubleshooting

Use cases

Designing dashboards

Developer Guide

Clone this wiki locally