Sign Up

Sign In

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What is the capital of Egypt? ( Cairo )

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Setup Collectd with Grafana and InfluxDB

Install and Configure collect

You will need to install the following for this next section.

apt-get install -y collectd

Once installed you now need to configure collectd to utilize the proxy we installed

vi /etc/collectd/collectd.conf

Uncomment and update the lines:

LoadPlugin network

<Plugin network>
        Server "10.10.10.10" "8096"
</Plugin>

Where we have 10.10.10.10 you’ll want to replace with your container’s private IP address.

Verify

You can use tcpdump to ensure packets are traveling over UDP to your container.

tcpdump -i eth1 -p -n -s 1500 udp

listening on eth1, link-type EN10MB (Ethernet), capture size 1500 bytes
23:59:07.014256 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 02:01:81:99:60:fa, length 300
23:59:13.104494 IP 10.10.10.11.42509 > 10.10.10.10.8096: UDP, length 1331
23:59:13.104773 IP 10.10.10.11.42509 > 10.10.10.10.8096: UDP, length 1332

You should also be able to query InfluxDB to see your metrics:

select * from "ubuntu/cpu-0/cpu-idle"

You’re next steps are to now setup your Grafana dashboard in the way you’d like.

Hits: 1

Leave a comment

What is the capital of Egypt? ( Cairo )