5.32. collectd::plugin::write_http
使用 write_http
输出插件,通过使用带有 JSON 的 POST 请求和编码指标,或使用 PUTVAL
命令将值提交到 HTTP 服务器。
参数 | 类型 |
---|---|
确保 | Enum[present,absent] |
节点 | hash[String, Hash[String, Scalar]] |
urls | hash[String, Hash[String, Scalar]] |
manage_package | 布尔值 |
配置示例:
parameter_defaults: CollectdExtraPlugins: - write_http ExtraConfig: collectd::plugin::write_http::nodes: collectd: url: “http://collectd.tld.org/collectd” metrics: true header: “X-Custom-Header: custom_value"
其他资源
-
有关配置
write_http
插件的更多信息,请参阅 write_http。