Project

General

Profile

Monitoring via collectd » History » Version 1

laforge, 04/18/2022 09:49 PM

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