# prometheus-examples **Repository Path**: wqt/prometheus-examples ## Basic Information - **Project Name**: prometheus-examples - **Description**: 普罗米修斯的配置示例 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-18 - **Last Updated**: 2022-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 普罗米修斯的http_sd_configs配置示例 [httpsd](httpsd) prometheus最新版本已经支持了*http_sd_configs*动态发现, 同时实验性支持*relabel_config*中使用*targets*中的抓取间隔标签, 因此我们已经可以按照目标独立设置抓取时间, 示例如下: ```json [ { "targets": [ "localhost:9091" ], "labels": { "__meta_http_metrics_enable": "1", "__meta_http_address": "localhost:9090", "__meta_http_scheme": "http", "__scrape_interval__": "23s", "__scrape_timeout__": "5s", "__meta_http_label_host": "127.0.0.1:9091" } }, { "targets": [ "127.0.0.1:9092" ], "labels": { "__meta_http_metrics_enable": "1", "__meta_http_address": "localhost:9090", "__meta_http_scheme": "https", "__scrape_interval__": "8s", "__scrape_timeout__": "3s", "__meta_http_label_host": "127.0.0.1:9092" } } ] ```