From ed3853ccf941cb17c6fdcf4e9f125173d767d8eb Mon Sep 17 00:00:00 2001 From: xmppjingle Date: Mon, 18 Jul 2016 16:01:52 -0300 Subject: [PATCH] Complete Module Skeleton --- mod_grafite/README.md | 35 +++++++++++++++++++++++++++ mod_grafite/conf/mod_grafite.yml | 5 ++++ mod_grafite/mod_grafite.spec | 5 ++++ mod_grafite/{ => src}/mod_grafite.erl | 0 4 files changed, 45 insertions(+) create mode 100644 mod_grafite/README.md create mode 100644 mod_grafite/conf/mod_grafite.yml create mode 100644 mod_grafite/mod_grafite.spec rename mod_grafite/{ => src}/mod_grafite.erl (100%) diff --git a/mod_grafite/README.md b/mod_grafite/README.md new file mode 100644 index 0000000..6153198 --- /dev/null +++ b/mod_grafite/README.md @@ -0,0 +1,35 @@ + +mod_grafite - Gathers statistics and publishes via statsd/grafite +author: Thiago Rocha Camargo (rochacamargothiago@gmail.com) + + mod_grafite + ============== + +Gathers statistics and publishes via statsd/grafite + + CONFIGURE + --------- + +Enable the module in ejabberd.yml for example with a basic configuration: +modules: + mod_grafite: + statsdhost: "carbonr.xmpp.com.br" + statsdport: 8125 + +Configurable options: + statsdhost: Host of the statsd server + statsdport: Port of the statsd server + + EXAMPLE CONFIGURATION + --------------------- + +modules: + mod_grafite: + statsdhost: "carbonr.xmpp.com.br" + statsdport: 8125 + + FEATURE REQUESTS + ---------------- + + - Add support for configurable Hooks + diff --git a/mod_grafite/conf/mod_grafite.yml b/mod_grafite/conf/mod_grafite.yml new file mode 100644 index 0000000..6c47a33 --- /dev/null +++ b/mod_grafite/conf/mod_grafite.yml @@ -0,0 +1,5 @@ +modules: + mod_grafite: + statsdhost: "carbonr.xmpp.com.br" + statsdport: 8125 + \ No newline at end of file diff --git a/mod_grafite/mod_grafite.spec b/mod_grafite/mod_grafite.spec new file mode 100644 index 0000000..1cb670a --- /dev/null +++ b/mod_grafite/mod_grafite.spec @@ -0,0 +1,5 @@ +author: "Thiago Rocha Camargo " +category: "statistics" +summary: "Publishes Statistics via statsd/grafite" +home: "https://github.com/processone/ejabberd-contrib/tree/master/" +url: "git@github.com:processone/ejabberd-contrib.git" diff --git a/mod_grafite/mod_grafite.erl b/mod_grafite/src/mod_grafite.erl similarity index 100% rename from mod_grafite/mod_grafite.erl rename to mod_grafite/src/mod_grafite.erl