Timescale Cloud:性能、规模、企业
自托管产品
MST
您可以使用流行的开源基于指标的系统监控解决方案 Prometheus 来监控您的 TimescaleDB 托管服务数据库,从而获得更多性能洞察。
在开始之前,请确保您已:
- 在您的 TimescaleDB 托管服务账户中创建了一个服务。
- 记下了您服务的
Port
和Host
。
在 MST 门户
中,选择一个项目并导航到
Integration Endpoints
。在
Integration endpoints
页面中,导航到Prometheus
,然后单击Create new
。在
Create new Prometheus endpoint
对话框中,填写以下字段:- 在
Endpoint name
字段中,输入您的端点名称。 - 在
Username
字段中,输入您的用户名。 - 在
Password
字段中,输入您的密码。 - 单击
Create
创建端点。
这些详细信息用于设置您的 Prometheus 安装,在
prometheus.yml
配置文件中。这允许您将此 TimescaleDB 托管服务端点设置为 Prometheus 的抓取目标。- 在
使用此示例配置文件设置您的 Prometheus 安装,将
<PORT>
、<HOST>
、<USER>
和<PASSWORD>
替换为您 TimescaleDB 托管服务实例的相应值:global:scrape_interval: 10sevaluation_interval: 10sscrape_configs:- job_name: prometheusscheme: httpsstatic_configs:- targets: ['<HOST>:<PORT>']tls_config:insecure_skip_verify: truebasic_auth:username: <USER>password: <PASSWORD>remote_write:- url: "http://<HOST>:9201/write"remote_read:- url: "http://<HOST>:9201/read"在 TimescaleDB 托管服务门户中,导航到
Services
并选择您要监控的服务。在
Integrations
选项卡中,转到External integrations
部分并选择Prometheus
。在
Prometheus integrations
对话框中,选择您创建的 Prometheus 端点。单击
Enable
。Prometheus 端点将列在 TimescaleDB 托管服务实例的
Enabled integrations
下。
关键词