tencent cloud

Feedback

Metric Topic Shipping

Last updated: 2024-08-27 17:58:40

    Overview

    After metrics are collected to CLS, they can be shipped to a time series database (such as Prometheus) with RemoteWrite enabled.

    Prerequisites

    1. CLS has been enabled, metric topics have been created, and metric data has been successfully collected.
    2. RemoteWrite has been enabled for the time series database.
    3. Sub-accounts/collaborators have been authorized by using the root account. For authorization steps, see Sub-account Authorization. To copy the authorization policy, see CLS Access Policy Template.

    Directions

    1. Log in to the Cloud Log Service console.
    2. In the left sidebar, click Metric Topic.
    3. Click the ID/name of the metric topic to be shipped to enter the metric topic management page.
    4. Click Deliver metrics to go to the delivery configuration page, then click Create.
    The configuration items are described as follows:
    Configuration Item
    Description
    Limit
    Required
    Task Name
    Name of the shipping task
    No more than 128 characters.
    Required
    Shipping object
    Prometheus
    Thanos
    Configure RemoteWrite of the shipping destination in advance.
    -
    Access method
    Private network: Choose a private network if the shipping destination is accessed through the private network. For example, Prometheus is deployed on a CVM instance in the same region as the CLS instance.
    Public network: Not supported currently.
    The shipping destination and metric topic are in the same region.
    Required
    Network (private network)
    VPC network of the shipping destination
    -
    Required
    Network service type
    (private network)
    CVM: The shipping destination is directly deployed on a CVM instance.
    Note:
    Choose CVM if you want to ship metric topics to Prometheus on the Tencent Cloud Observability Platform.
    CLB: The service address and port of the shipping destination are forwarded through Tencent Cloud CLB.
    -
    -
    Remote Write
    address
    Example: http://192.168.2.17:9090/api/v1/prom/write
    -
    Required
    Authentication method
    Authentication method for accessing the time series database via RemoteWrite:
    BASIC AUTH: Username and password are required.
    Note:
    For Prometheus on the Tencent Cloud Observability Platform, enter the Grafana page, and choose DataSource > Settings > Basic Auth Details on the left configuration pane to view the user and password.
    No authentication
    -
    Required
    Test connectivity
    Test the network connectivity between CLS and the shipping destination.
    Note:
    The metric shipping configuration can be submitted only after the connectivity test passes.
    -
    Required
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support