Integrate graphite metrics with bosun

I am running a Docker container for bosun. I want to integrate graphite metrics with bosun.
What are the configuration changes that need to be made for this?

+5
source share
2 answers

According to the documentation you are linking you should set graphiteHost in config:

graphiteHost: ip, hostname, ip: port, hostname: port or URL, the default port is http / https, the default path is "/ render". Any nonzero path (even "/" overrides the path)

The Bosun graphic page and line page only works with OpenTSDB as a backend. However, you can still use the expression page, toolbar, and configuration editor. When you use expressions that return seriesSet as a graphical query function , you will see a graph tab on the tab. You can also use the template functions .Graph and .GraphAll with graphite. Thus, it is largely functional.

There is also an example graphical warning in the examples part of the documentation.

+3
source

@ The answer to kyle-brandt is fine, and I gave it upvote, but it and the Bosun docs don't really explain enough how to use graphite that you don't use, i.e. hostinggraphite.com. Using documents and some trial versions and errors, I understood everything. So here it is:

  • Make a Graphite API key: http://docs.hostedgraphite.com/advanced/access-keys.html (you have to redirect IP addresses). Say you got https://www.hostedgraphite.com/deadbeef/431-831/graphite/ .
  • Create data.conf with:

    tsdbHost = localhost:4242 stateFile = /data/bosun.state graphiteHost = https://www.hostedgraphite.com/deadbeef/431-831/graphite/render

  • Run the Docker container: docker run -d \ -p 80:8070 \ --name=bosun \ -v `pwd`/bosun.conf:/data/bosun.conf \ stackexchange/bosun Note that I did not do port mapping 4242, because I only get my data from hostinggraphite.com, and I mapped 8070 to 80, so I don’t need to specify the port when switching to Bosun in the browser.
  • Adding expressions: docs say use GraphiteQuery , but that didn’t work for me, graphite worked instead. For example: graphite("my.long.metric.name.for.some.method", "10m", "", "") . Examples have an example of a graphical warning . part of the documentation (thanks @ kyle-brandt).
+4
source

All Articles