Project

General

Profile

Monitoring via collectd » History » Version 2

laforge, 04/21/2022 05:46 PM

1 2 laforge
h1. Monitoring via collectd
2 1 laforge
3
* install osmo-e1d with the fix from https://gerrit.osmocom.org/c/osmo-e1d/+/27823
4
* add the following config snippet to @osmo-e1d.cfg@:
5
<pre>
6
stats interval 10
7
stats reporter statsd
8
  remote-ip 127.0.0.1
9
  remote-port 8125
10
  level global
11
  no prefix
12
  enable
13
</pre>
14
* install collectd (debian package)
15
* modify collectd config as follows:
16
<pre>
17
diff --git a/collectd/collectd.conf b/collectd/collectd.conf
18
index fc42491..c836b14 100644
19
--- a/collectd/collectd.conf
20
+++ b/collectd/collectd.conf
21
@@ -179,7 +179,7 @@ LoadPlugin rrdtool
22
 #LoadPlugin smart
23
 #LoadPlugin snmp
24
 #LoadPlugin snmp_agent
25
-#LoadPlugin statsd
26
+LoadPlugin statsd
27
 LoadPlugin swap
28
 #LoadPlugin table
29
 #LoadPlugin tail
30
@@ -1286,9 +1286,9 @@ LoadPlugin users
31
 #      </Table>
32
 #</Plugin>
33
 
34
-#<Plugin statsd>
35
-#      Host "::"
36
-#      Port "8125"
37
+<Plugin statsd>
38
+       Host "::"
39
+       Port "8125"
40
 #      DeleteCounters false
41
 #      DeleteTimers   false
42
 #      DeleteGauges   false
43
@@ -1301,7 +1301,7 @@ LoadPlugin users
44
 #      TimerUpper     false
45
 #      TimerSum       false
46
 #      TimerCount     false
47
-#</Plugin>
48
+</Plugin>
49
 
50
 #<Plugin swap>
51
 #      ReportByDevice false
52
53
</pre>
54
55
You should now find various rrd files generated in @/var/lib/collectd/rrd/$hostname/statsd/@
56
57
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.
Add picture from clipboard (Maximum size: 48.8 MB)