ICMP黑匣子配置不适用于Prometheus

问题描述

伙计们,我不确定为什么我的Prometheus不与我的黑匣子出口商合作?每当我重新启动Prometheus时,都会遇到重新启动失败的情况。任何帮助将不胜感激。

黑匣子运行正常,并显示概率成功

blackBox.yml代码

modules: 
icmp: 
   prober: icmp 
   icmp: 
     preferred_ip_protocol: ip4 

prometheus.yml code

    job_name: 'blackBox-ping' 
    metrics_path: /probe 
    params: 
      module: [icmp] 
    static_configs: 
    - targets: 
     - 10.100.1.XX 

    - relabel_configs: 
    - source_labels: [__address__] 
      target_label: __param_target 
     - source_labels: [__param_target] 
       target_label: instance 
     - target_label: __address__ 
       replacement: localhost:9115 

错误

prometheus.service-普罗米修斯 已加载:已加载(/etc/systemd/system/prometheus.service;已启用;供应商预设:已启用) 活动:自Mon 2020-11-09 08:47:42 UTC开始失败(结果:退出代码); 2秒前 文件https://prometheus.io/docs/introduction/overview/ 进程:1686856 ExecStart = / usr / local / bin / prometheus --config.file = / etc / prometheus / prometheus.yml --storage.tsdb.path = / var / lib / prometheus --web.console。> 主PID:1686856(代码=已退出,状态= 2)

Nov 09 08:47:42 ovl-nagios systemd [1]:prometheus.service:主进程已退出代码退出,状态= 2 / INVALIDARGUMENT Nov 09 08:47:42 ovl-nagios systemd [1]:prometheus.service:失败,结果为“退出代码”。 Nov 09 08:47:42 ovl-nagios systemd [1]:prometheus.service:计划的重新启动作业,重新启动计数器位于5。 Nov 09 08:47:42 ovl-nagios systemd [1]:已停止使用普罗米修斯。 Nov 09 08:47:42 ovl-nagios systemd [1]:prometheus.service:启动请求重复太快。 Nov 09 08:47:42 ovl-nagios systemd [1]:prometheus.service:失败,结果为“退出代码”。 Nov 09 08:47:42 ovl-nagios systemd [1]:无法启动Prometheus。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)