Timescale Cloud:性能、规模、企业

自托管产品

MST

您可以使用流行的开源基于指标的系统监控解决方案 Prometheus 来监控您的 TimescaleDB 托管服务数据库,从而获得更多性能洞察。

在开始之前,请确保您已:

  • 在您的 TimescaleDB 托管服务账户中创建了一个服务。
  • 记下了您服务的 PortHost
  1. MST 门户中,选择一个项目并导航到 Integration Endpoints

  2. Integration endpoints 页面中,导航到 Prometheus,然后单击 Create new

  3. Create new Prometheus endpoint 对话框中,填写以下字段:

    • Endpoint name 字段中,输入您的端点名称。
    • Username 字段中,输入您的用户名。
    • Password 字段中,输入您的密码。
    • 单击 Create 创建端点。

    这些详细信息用于设置您的 Prometheus 安装,在 prometheus.yml 配置文件中。这允许您将此 TimescaleDB 托管服务端点设置为 Prometheus 的抓取目标。

  4. 使用此示例配置文件设置您的 Prometheus 安装,将 <PORT><HOST><USER><PASSWORD> 替换为您 TimescaleDB 托管服务实例的相应值:

    global:
    scrape_interval: 10s
    evaluation_interval: 10s
    scrape_configs:
    - job_name: prometheus
    scheme: https
    static_configs:
    - targets: ['<HOST>:<PORT>']
    tls_config:
    insecure_skip_verify: true
    basic_auth:
    username: <USER>
    password: <PASSWORD>
    remote_write:
    - url: "http://<HOST>:9201/write"
    remote_read:
    - url: "http://<HOST>:9201/read"
  5. 在 TimescaleDB 托管服务门户中,导航到 Services 并选择您要监控的服务。

  6. Integrations 选项卡中,转到 External integrations 部分并选择 Prometheus

  7. Prometheus integrations 对话框中,选择您创建的 Prometheus 端点。

  8. 单击 Enable

    Prometheus 端点将列在 TimescaleDB 托管服务实例的 Enabled integrations 下。

关键词

在此页面上发现问题?报告问题 或在 GitHub 上编辑此页面