Installing and configuring Graphite with Collectd on FreeBSD

Using Graphite for a smidgen blog like mine is definitely an overkill and Munin fits much better but I wasn’t able to confront my curiosity. So that’s why this post.
Before I start, I’d like to mention that even if I’ll be speaking about my endeavor with Graphite on a system running FreeBSD 10.0-RC5, the same configuration would certainly work on Linux. But since different distros install Graphite’s components into different directories (certainly different from what FreeBSD does) you should update your configuration files smartly.

Hopefully now you could log into Graphite and start building new graphs.

Posted on January 25, 2014 at 2:43 pm by sergeyt · Permalink
In: FreeBSD

3 Responses

Subscribe to comments via RSS

  1. Written by Krislav
    on January 29, 2014 at 4:58 am
    Reply · Permalink

    where can you find the rc.conf file you mentioned earlier?

    • Written by sergeyt
      on January 29, 2014 at 9:03 am
      Reply · Permalink

      Hi Krislav,

      rc.conf is a BSD specific file that contains system configuration information and it could be found in /etc/rc.conf.
      If you take a look at any startup script, for example /usr/local/etc/rc.d/carbon, you’d see at the top something similar to this:

      #!/bin/sh
      #
      # PROVIDE: carbon
      # KEYWORD: shutdown
      #
      # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
      # to enable this service:
      #
      # carbon_enable (bool): Set to NO by default.
      #                       Set it to YES to enable it.
      # carbon_user:          The user account carbon daemon runs as what
      #                       you want it to be. It uses 'root' user by
      #                       default.
      # carbon_group:         The group account carbon daemon runs as what
      #                       you want it to be. It uses 'wheel' group by
      #                       default.
      # carbon_debug:         Determines if you want carbon to run in debug
      #                       mode, it may be very verbose. It will not run
      #                       in debug by default.
      # carbon_logdir:        Directory where carbon logs are stored.
      #                       Default: /usr/local/graphite/storage/log
      # carbon_conf:          File where carbon configuration resides
      #                       Default: /usr/local/etc/carbon/carbon.conf
      # carbon_pidfile:       Location where carbon should place its pid file
      #                       Default: /var/run/carbon.pid
      

      For more information regarding rc.conf check its man page and FeeBSD handbook.

      Thanks.
      Sergey

  2. […] Installing and configuring Graphite with Collectd on FreeBSD […]

Subscribe to comments via RSS

Leave a Reply