Prometheus is a cloud native application that you can use to collect and monitor metric data of various software and systems. This topic describes how to collect metric data from Prometheus to Log Service. This topic also describes how to use Log Service to analyze and monitor the data.
Prerequisites
- A Metricstore is created. For more information, see Create a Metricstore.
- Prometheus is installed. For more information, see GETTING STARTED.
- Data collection rules are configured in Prometheus. For more information, see scrape_config.
Procedure
Log Service supports the Remote Write Protocol. You can use the remote write feature of Prometheus to collect metric data to Log Service. Before you can use the remote write feature, you must perform the following steps to enable the feature in Prometheus:
What to do next
- Query and analyze Prometheus metric data on Log Service. For more information, see Query and analyze time series data.
- Visualize Prometheus metric data on Grafana. For more information, see Send time series data from Log Service to Grafana.