elasticsearch 如何在heartbeat.yml中添加更多监视器?
我正在Kibana试用正常运行时间功能。我下载了Heartbeat并使用默认设置运行它。没问题 但是,当我尝试在heartbeat.yml中添加更多监视器时。我遇到了一个错误 以下是默认设置,运行正常。 海特尔 但是,当我添加以下内容时,我得到一个错误
elasticsearch 如何在heartbeat.yml中添加更多监视器?,
elasticsearch,kibana,elastic-stack,
elasticsearch,Kibana,Elastic Stack,我正在Kibana试用正常运行时间功能。我下载了Heartbeat并使用默认设置运行它。没问题 但是,当我尝试在heartbeat.yml中添加更多监视器时。我遇到了一个错误 以下是默认设置,运行正常。 海特尔 但是,当我添加以下内容时,我得到一个错误 # Configure monitors inline heartbeat.monitors: - type: http # List or urls to query urls: ["http://localhost:9200"]
# Configure monitors inline
heartbeat.monitors:
- type: http
# List or urls to query
urls: ["http://localhost:9200"]
# Configure task schedule
schedule: '@every 10s'
# Total test connection and data exchange timeout
#timeout: 16s
- type: icmp <------ When I try to add tcp or icmp,
schedule: '@every 10s' <------ I get an error. I am doing something
hosts: ["localhost"] <------ wrong. How can I add more monitors?
当我删除我想添加的内容时,效果很好。如何在heartbeat.yml中添加更多监视器 我坚信这是YAML文件中的缩进问题 查看您的icmp监视器:
- type: icmp <------ When I try to add tcp or icmp,
schedule: '@every 10s' <------ I get an error. I am doing something
hosts: ["localhost"] <------ wrong. How can I add more monitors?
将“类型”字段下的设置精确对齐,然后再次运行。我坚信这是YAML文件中的缩进问题 查看您的icmp监视器:
- type: icmp <------ When I try to add tcp or icmp,
schedule: '@every 10s' <------ I get an error. I am doing something
hosts: ["localhost"] <------ wrong. How can I add more monitors?
将“类型”字段下的设置精确对齐,然后再次运行该字段
- type: icmp <------ When I try to add tcp or icmp,
schedule: '@every 10s' <------ I get an error. I am doing something
hosts: ["localhost"] <------ wrong. How can I add more monitors?
heartbeat.monitors:
- type: http
# List or urls to query
urls: ["http://localhost:9200"]
# Configure task schedule
schedule: '@every 10s'
# Total test connection and data exchange timeout
#timeout: 16s