aboutsummaryrefslogtreecommitdiff
path: root/kamon-examples/kamon-fluentd-example/README.md
blob: 0dc6a250c3796cbbd6eb7978a7c3f3146897d27c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
kamon-fluentd-example
------------------------------

An example Spray application with Kamon monitoring reporting to Fluentd Server.

Prerequisites
---------------
* fluentd:
  ```sh
  you@host:kamon-fluentd-example $ gem install fluentd
  ```

* install kamon snapshots to local:
  ```sh
  you@host:kamon-fluentd-example $ cd ../../
  you@host:Kamon $ sbt "+ publishLocal"
  ... snip...
  [info] 	published ivy to /Users/___/.ivy2/local/io.kamon/kamon-akka-remote_2.11/0.5.2-021ffd253e104342e6b4c75ae42717b51e3b6b26/ivys/ivy.xml
  [success] Total time: 248 s, completed 2015/10/04 0:27:53
  [info] Setting version to 2.10.4
  [info] Reapplying settings...
  [info] Set current project to kamon (in build file:/Users/___/kamon-io/Kamon/)
  ```

* edit build.sbt.  edit `kamonV` variable with installed snapshot version (`0.5.2-021ffd253e104342e6b4c75ae42717b51e3b6b26` in the above example).

How to run
------------
1. just do it: `sbt aspectj-runner:run`
2. you'll see kamon-log-reporter outputs on console.
3. you'll also see kamon metrics sent to fluentd on files named `target/fluentd_out.****`