Collectd graphs


CollectD & Graphite Server Metrics Dashboard with CPU, Memory, IO & Disk Stats
Last updated: 8 months ago

Downloads: 297

    Working dashboards tested on

    Ubuntu 14.04/16.04

    Collectd 5.4 and 5.5

    Grafana 4.4.1

    Graphite 0.9.15

    Collector Configuration Details

    /etc/collectd/collectd.conf :

    FQDNLookup false
    Interval 10
    LoadPlugin network
    LoadPlugin rrdtool
    LoadPlugin cpu
    LoadPlugin df
    LoadPlugin interface
    LoadPlugin load
    LoadPlugin memory
    LoadPlugin syslog
    LoadPlugin tcpconns
    LoadPlugin processes
    <Plugin network>
     server ""  "25826"
     SecurityLevel none
    <Plugin rrdtool>
     DataDir "/var/lib/collectd/rrd"
    <Plugin tcpconns>
    LocalPort 80
    LocalPort 443
    LocalPort 2200
    <Plugin interface>
    Interface "eth0"
    Interface "lo"
    Interface "venet0"
    <Plugin df>
    MountPoint "/"
    Include "/etc/collectd/thresholds.conf"
    Include "/etc/collectd/conf.d/*conf"

    /etc/collectd/conf.d/apache.conf :

    LoadPlugin apache
    <Plugin processes>
    Process "apache2"
    <Plugin tcpconns>
    LocalPort 8080
    <Plugin "apache">
       <Instance "apache">
           URL "http://localhost:8080/server-status?auto"

    /etc/collectd/conf.d/disk.conf :

    LoadPlugin disk

    /etc/collectd/conf.d/graphite.conf :

    LoadPlugin write_graphite
    LoadPlugin aggregation
    <Plugin write_graphite>
            <Node "graphite">
                    Host ""
                    Port "2003"
                    Protocol "tcp"
                    LogSendErrors true
                    Prefix "collectd."
                    EscapeCharacter "_"
                    SeparateInstances true
                    StoreRates true
                    AlwaysAppendDS false
    <Plugin "aggregation">
        Plugin "cpu"
        Type "cpu"
        GroupBy "Host"
        GroupBy "TypeInstance"
        CalculateAverage true
    <Plugin df>
      ReportByDevice false
      ReportReserved true
      ReportInodes true
      ValuesAbsolute true
      ValuesPercentage true
      ReportInodes true
    <Chain "PostCache">
        <Match regex>
          Plugin "^cpu$"
          PluginInstance "^[0-9]+$"
        <Target write>
          Plugin "aggregation"
        Target stop
      Target "write"

    /etc/collectd/conf.d/local.conf :

    LoadPlugin swap
    LoadPlugin Tail
    <Plugin "tail">
    <File "/var/log/nginx/error.log">
    Instance nginx
        #Regex "(upstream prematurely closed |no live upstreams|upstream server temporarily|Connection reset by peer)"
        Regex "(ddddd.*No such file or direc)"
        DSType "DeriveInc"
        Type "derive"
        Instance "errors"

    /etc/collectd/conf.d/mysql.conf :

    LoadPlugin mysql
    <Plugin processes>
    Process "mysqld"
    <Plugin mysql>
    <Database foo>
    User "nagios"
    Password ""

    /etc/collectd/conf.d/nginx.conf :

    LoadPlugin nginx
    <Plugin "nginx">
      URL "http://localhost/nginx_status"