From: Xiao Yu Date: Wed, 21 May 2025 23:48:44 +0000 (+0000) Subject: collectd: Add `write_prometheus` uci config X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e36b727d9935ffa6f10f4befca6fdcd39cdce550;p=openwrt-packages.git collectd: Add `write_prometheus` uci config Included with default options used by collectd Signed-off-by: Xiao Yu --- diff --git a/utils/collectd/files/collectd.uci b/utils/collectd/files/collectd.uci index 3b2088a83..b7db1a2f1 100644 --- a/utils/collectd/files/collectd.uci +++ b/utils/collectd/files/collectd.uci @@ -230,3 +230,9 @@ config globals 'globals' # option blocktype 'Subscribe' # option Host 'localhost' # option Topic 'collectd/#' + +#config plugin 'write_prometheus' +# option enable '0' +# option Host '0.0.0.0' +# option Port '9103' +# option StalenessDelta '300' diff --git a/utils/collectd/files/usr/share/collectd/plugin/write_prometheus.json b/utils/collectd/files/usr/share/collectd/plugin/write_prometheus.json new file mode 100644 index 000000000..719a8db59 --- /dev/null +++ b/utils/collectd/files/usr/share/collectd/plugin/write_prometheus.json @@ -0,0 +1,7 @@ +{ + "string": [ + "Host", + "Port", + "StalenessDelta" + ] +}