# my global config
global:
scrape_interval: 15s
label: titan
scrape_configs:
- job_name: cassandra_titan
static_configs:
- targets:
- 00.0.0.00:7070
- job_name: titan_server
static_configs:
- targets:
- 00.0.0.00:9100
label: cassandra_development
scrape_configs:
- job_name: cassandra_node1
static_configs:
- targets:
- 10.0.0.00:7070
- job_name: cassandra_node2
static_configs:
- targets:
- 00.0.0.00:7070
- job_name: cassandra_node3
static_configs:
- targets:
- 10.0.0.00:7070
我正在编写一个 prometheus.yml 文件来监控多个 cassandra 节点。我将节点分组在“titan”和“cassandra_development”下。启动普罗米修斯时出现以下错误:
msg="加载配置时出错" err="无法加载配置 (--config.file=prometheus.yml): yaml: 第 5 行: 在此上下文中不允许映射值"