aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego <diegolparra@gmail.com>2014-04-06 19:19:11 -0300
committerDiego <diegolparra@gmail.com>2014-04-06 19:19:11 -0300
commit0668fb4b992a90ae19020a9ce7cf540098cda785 (patch)
treed4beb678cf0c133a2956ab12d17dc37e57b99d68
parenta4ef80ed7a40db9eacdfa7d237db625c17909c20 (diff)
downloadKamon-0668fb4b992a90ae19020a9ce7cf540098cda785.tar.gz
Kamon-0668fb4b992a90ae19020a9ce7cf540098cda785.tar.bz2
Kamon-0668fb4b992a90ae19020a9ce7cf540098cda785.zip
+ statsd: improve documentation
-rw-r--r--site/src/main/jekyll/assets/css/kamon.css1
-rw-r--r--site/src/main/jekyll/assets/img/kamon-statsd-grafana.pngbin0 -> 315858 bytes
-rw-r--r--site/src/main/jekyll/statsd/index.md60
3 files changed, 57 insertions, 4 deletions
diff --git a/site/src/main/jekyll/assets/css/kamon.css b/site/src/main/jekyll/assets/css/kamon.css
index 27aec314..1dca8828 100644
--- a/site/src/main/jekyll/assets/css/kamon.css
+++ b/site/src/main/jekyll/assets/css/kamon.css
@@ -50,6 +50,7 @@ body {
}
img[alt=newrelic] { width: 100%; }
+img[alt=statsD] { width: 100%; }
.btn-success {
background-color: #29b068
diff --git a/site/src/main/jekyll/assets/img/kamon-statsd-grafana.png b/site/src/main/jekyll/assets/img/kamon-statsd-grafana.png
new file mode 100644
index 00000000..606ff7e6
--- /dev/null
+++ b/site/src/main/jekyll/assets/img/kamon-statsd-grafana.png
Binary files differ
diff --git a/site/src/main/jekyll/statsd/index.md b/site/src/main/jekyll/statsd/index.md
index 5a9cf0b2..aa8e7b08 100644
--- a/site/src/main/jekyll/statsd/index.md
+++ b/site/src/main/jekyll/statsd/index.md
@@ -7,18 +7,70 @@ What is StatsD?
=======
StatsD is a simple network daemon that continuously receives metrics pushed over UDP and periodically sends aggregate metrics to upstream services
-like Graphite. Because it uses UDP, clients (for example, web applications) can ship metrics to it very fast with little to no overhead.
+like Graphite. Because it uses UDP, clients can send metrics to it very fast with little to no overhead.
This means that a user can capture multiple metrics for every request to a web application, even at a rate of thousands of requests per second.
Request-level metrics are aggregated over a flush interval (default 10 seconds) and pushed to an upstream metrics service.
+
Getting Started with StatsD
----------
-If you are not familiar with StatsD, we recommend reading bla bla bla.
-To get started running StatsD in your environment, follow the installation instructions in bla bla bla.
+Installation
+-------------
+
+To use the StatsD module just make sure you put the `kamon-statsd` library in your classpath and start your application the Aspectj Weaver and Newrelic agents. Please refer to our [get started](/get-started) page
+for more info on how to add the AspectJ Weaver.
+
+
+Configuration
+-------------
+
+Currently you will need to add a few settings to your `application.conf` file for the module to work:
+
+```scala
+akka {
+ // Make sure the StatsD extension is loaded with the ActorSystem
+ extensions = ["kamon.statsd.StatsD"]
+}
+
+kamon {
+ statsd {
+ # Hostname and port in which your StatsD is running. Remember that StatsD packets are sent using UDP and
+ # setting unreachable hosts and/or not open ports wont be warned by the Kamon, your data wont go anywhere.
+ hostname = "127.0.0.1"
+ port = 8125
+
+ # Interval between metrics data flushes to StatsD. It's value must be equal or greater than the
+ # kamon.metrics.tick-interval setting.
+ flush-interval = 1 second
+
+ # Max packet size in bytes for UDP metrics data sent to StatsD.
+ max-packet-size = 1024
+
+ # Subscription patterns used to select which metrics will be pushed to StatsD. Note that first, metrics
+ # collection for your desired entities must be activated under the kamon.metrics.filters settings.
+ includes {
+ actor = [ "*" ]
+ }
+
+ simple-metric-key-generator {
+ # Application prefix for all metrics pushed to StatsD. The default namespacing scheme for metrics follows
+ # this pattern:
+ # application.host.entity.entity-name.metric-name
+ application = "Kamon"
+ }
+ }
+}
+```
Installing Graphite
----------
-Graphite dashboards(grafana)
+In the Graphite documentation we can find the [Graphite overview](http://graphite.readthedocs.org/en/latest/overview.html#what-graphite-is-and-is-not). It sums up Graphite with these two simple points.
+
+* Graphite stores numeric time-series data.
+* Graphite renders graphs of this data on demand.
+
+Show data with [Grafana](http://grafana.org)
----------
+![statsD](/assets/img/kamon-statsd-grafana.png "Grafana Screenshot")