问题描述
我有一个curl插件,用于报告本地http服务器的状态。它从/stats
中读取并在响应中报告server.ready
的值:
<Plugin curl>
<Page "server_ready">
URL "http://localhost:8080/stats"
<Match>
Instance "ready"
Regex "server.ready ([0-9])"
DSType "GaugeMAX"
Type "gauge"
</Match>
</Page>
</Plugin>
但是,当服务器未运行时,我在插件报告中没有任何指标:
curl plugin: curl_easy_perform Failed with status 7: Failed to connect to localhost port 8080: Connection refused
问题:是否可以配置(或收集)插件,以便即使插件无法连接到URL,我也可以获取表示“下降”的度量值?
非常感谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)