This topic was translated by AI and is currently in queue for revision by our editors. Alibaba Cloud does not guarantee the accuracy of AI-translated content. Request expedited revision

Enable fine-grained second-level monitoring

Updated at: 2024-10-31 03:11

The IoT Platform offers fine-grained second-level monitoring for mobile terminated message TPS and message forwarding TPS. This capability allows you to observe real-time fluctuations in mobile terminated message TPS and message forwarding TPS, providing insights into device message volume trends. By default, the fine-grained second-level monitoring feature is disabled and must be manually activated to begin data collection and display.

Billing description

Activating the IoT Platform's fine-grained second-level monitoring service involves dumping the platform's monitoring logs into the Alibaba Cloud Simple Log Service (SLS) Logstore. Charges are incurred according to the Alibaba Cloud Simple Log Service (SLS) billing standards. For more information, see the billing description of Simple Log Service (SLS).

Enable second-level monitoring

  1. Log on to the IoT Platform console, and select the region where your instance is located from the menu bar at the top of the page.

  2. Navigate to the Instance Overview tab and single click the destination instance to access the Instance Details page.

  3. On the Monitoring Report tab, single click the Fine-grained Second-level Monitoring tab.

  4. Toggle the Second-level Monitoring switch next to the metric you wish to monitor (e.g., Mobile Terminated Message TPS, Message Forwarding TPS).

  5. In the Log Configuration dialog box, proceed to enable fine-grained second-level monitoring.

    • If this is your first time enabling the feature, follow the steps below to create the necessary service-linked role and log storage location, then click Confirm.

      1. If Simple Log Service (SLS) is not yet activated, click Activate to proceed to the log service activation page. After activating SLS, return to the Log Configuration dialog box.

        You can verify the activation by clicking Refresh Simple Log Service (SLS) Activation Status.

      2. Click Role next to Create to establish the service-linked role.

        Role Name

        Role Policy Name

        Role Policy Description

        Usage Description

        Role Name

        Role Policy Name

        Role Policy Description

        Usage Description

        AliyunLogETLRole

        AliyunLogETLRolePolicy

        The authorization policy for the log service ETL function role, which is used by the log service by default to access the user's log resources.

        For details on the role AliyunLogETLRole, see Create Default Role.

        AliyunServiceRoleForIoTLogExport

        AliyunServiceRolePolicyForIoTLogExport

        The authorization policy for the service-linked role for IoT Platform log export, which allows the IoT Platform to access log service resources.

        For more information on the service-linked role for log export, see Service-linked Role for Log Export.

      3. Click Log Dump Location next to Create to set up the log storage location.

        • Project: iot-log-${uid}-${regionId}, where ${uid} is your Alibaba Cloud account ID and ${regionId} is the region code of your IoT Platform service.

        • LogStore: iot-second-monitor-logs.

        • MetricStore: iot-second-monitor-metricstore.

        The default retention period for data in LogStore and MetricStore is 7 days.

      Upon enabling second-level monitoring, two scheduled SQL queries will be created within the corresponding Project in SLS: iot-message-transmit-second-monitor-scheduled-sql and iot-message-second-monitor-scheduled-sql.

    • If it is not the first time enabling fine-grained second-level monitoring, Role and Log Storage Location on the right side will display Created. Simply single click Confirm to complete enabling fine-grained second-level monitoring.

  6. To view the second-level trend changes of mobile terminated message TPS and message forwarding TPS for your instance, see View Instance Information and Running Data.

Disable second-level monitoring

You can deactivate the second-level monitoring feature for mobile terminated message TPS and message forwarding TPS as needed.

  1. Log on to the IoT Platform console, and select the region where your instance is located from the menu bar at the top of the page.

  2. On the Instance Overview tab, single click the destination instance to enter the Instance Details page.

  3. On the Monitoring Report tab, single click the Fine-grained Second-level Monitoring tab.

  4. Simply click on the second-level monitoring metrics, such as Message Upstream And Downstream TPS or Message Forwarding TPS, located on the right side of Second-level Monitoring to switch them on.

  5. Click Confirm to finalize the deactivation.

Note

To discontinue second-level monitoring, simply turn it off without manually deleting the Project, Logstore, MetricStore, or scheduled SQLs in SLS. Removing these components will disrupt the normal display of second-level monitoring data.

References

  • View Instance Running Data: Access detailed operational metrics for device instances, including IOPS as recorded by DataService Studio, the count of online devices, .

  • If your instance's resource specifications, such as mobile terminated message TPS or message forwarding TPS, are insufficient for your business needs, consider upgrading the instance. For guidance, see Upgrade Public Instance to Enterprise Edition or Upgrade Enterprise Edition Instance.

  • To proactively manage instance resources and avoid potential shortages that could impact device operations, configure alert rules. For instructions, see Configure Alert Rules.

  • Real-time monitoring allows you to set up CloudMonitor alert rules, establish threshold or event-based alerts, and keep track of both device data and network status on the IoT Platform.

  • On this page (1, M)
  • Billing description
  • Enable second-level monitoring
  • Disable second-level monitoring
  • References
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare