Torch Log Service
LogCollector v2.3.2 and later versions support collecting metric data from servers based on collection configurations, and can collect various types of metric data in Prometheus format. This topic describes the steps for creating a metric collection configuration.
tip
Metric topic is now in closed beta. If you have business needs, contact your account manager for allowlist access.
Enter the Rule name.
Enter the Plugin configuration.
Enter the collection plugin configuration. For details, see the Prometheus official website. Example:
global: scrape_interval: 30s # Default is every 30s. scrape_timeout: 10s #is set to the global default (10s). # A scrape configuration containing exactly one endpoint to scrape: # Here it's Prometheus itself. scrape_configs: # The job name is added as a label 'job=<job_name>' to any timeseries scraped from this config. - job_name: 'prometheus' # metrics_path defaults to '/metrics' # metrics_path: '/metrics' # scheme defaults to 'http'. # scheme: 'http' static_configs: - targets: ['localhost:9090']
Click Submit.
After creating the collection configuration, LogCollector will collect metric data and save it to the specified metric topic. You can perform query and analysis operations in the metric topic. For details, see Query and analysis metric topics.