Project

General

Profile

Actions

Monitoring via collectd

  • install osmo-e1d with the fix from https://gerrit.osmocom.org/c/osmo-e1d/+/27823
  • add the following config snippet to osmo-e1d.cfg:
    stats interval 10
    stats reporter statsd
      remote-ip 127.0.0.1
      remote-port 8125
      level global
      no prefix
      enable
    
  • install collectd (debian package)
  • modify collectd config as follows:
    diff --git a/collectd/collectd.conf b/collectd/collectd.conf
    index fc42491..c836b14 100644
    --- a/collectd/collectd.conf
    +++ b/collectd/collectd.conf
    @@ -179,7 +179,7 @@ LoadPlugin rrdtool
     #LoadPlugin smart
     #LoadPlugin snmp
     #LoadPlugin snmp_agent
    -#LoadPlugin statsd
    +LoadPlugin statsd
     LoadPlugin swap
     #LoadPlugin table
     #LoadPlugin tail
    @@ -1286,9 +1286,9 @@ LoadPlugin users
     #      </Table>
     #</Plugin>
    
    -#<Plugin statsd>
    -#      Host "::" 
    -#      Port "8125" 
    +<Plugin statsd>
    +       Host "::" 
    +       Port "8125" 
     #      DeleteCounters false
     #      DeleteTimers   false
     #      DeleteGauges   false
    @@ -1301,7 +1301,7 @@ LoadPlugin users
     #      TimerUpper     false
     #      TimerSum       false
     #      TimerCount     false
    -#</Plugin>
    +</Plugin>
    
     #<Plugin swap>
     #      ReportByDevice false
    
    

You should now find various rrd files generated in /var/lib/collectd/rrd/$hostname/statsd/

Those files can be post-processed / rendered with a variety of tools. For interactive use, I found "kcollectd": https://collectd.org/wiki/index.php/Kcollectd quite useful.

Updated by laforge 7 months ago · 2 revisions

Add picture from clipboard (Maximum size: 48.8 MB)