tencent cloud

TencentCloud Managed Service for Prometheus

文档TencentCloud Managed Service for PrometheusPractical TutorialEnabling Public Network Access for Prometheus Instances

Enabling Public Network Access for Prometheus Instances

下载
聚焦模式
字号
最后更新时间: 2024-11-22 18:16:04

Operation Background

In some scenarios, you may need your Prometheus instance to have the ability to access the public network, for example:
When Prometheus is integrated to monitor COS products on the cloud, since COS products do not support private network access, the Prometheus instance needs to have the ability to access the public network.
The WebHook in the Prometheus alarm policy is used, and this WebHook URL is a public network address.
In such cases, you need to enable public network access for Prometheus (which essentially means enabling public network access for the TKE-managed cluster where the Prometheus instance components are located).

Operations

1. Log in to TMP Console.
2. Click the corresponding instance to enter the Instance Management page. Then, click Subnet on the Basic info tab page.



3. In the top menu of the subnet, switch to the Routing rules section. Click the route table link (rtb-xxx on the list) to enter the route table interface.



4. On the route table page, click Add routing policy.
Destination: Enter 0.0.0.0/0.
Next hop type: select NAT Gateway.
Next hop: select the target gateway. If there is no gateway, please refer to the NAT Gateway guide to create one.



5. After completing the settings, click Create. After the creation is successful, public network access is enabled for TKE Serverless.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈