site_treelogo
  -   Terms of Use and Privacy
Apps | GNU/Linux | IT Prepper | Meta
rss
site_treelogo
  -   Terms of Use and Privacy
Apps | GNU/Linux | IT Prepper | Meta
rss

<<   <   >   >>

2021-06-07 | Apps | Carbon and Graphite

[Be careful. This article assumes you have an unconfigured system and are starting fresh.]

After initial install of Graphite, copy the example configuration files in /opt/graphite/conf by using this command:

for i in *.conf.example; do  cp $i ${i::len-12}conf; done

You'll end up with a fresh set of .conf files:

root [ /opt/graphite/conf ]# ls -l *.conf
-rw-r--r-- 1 root root  2176 Jun  7 14:10 aggregation-rules.conf
-rw-r--r-- 1 root root   492 Jun  7 14:10 blacklist.conf
-rw-r--r-- 1 root root  2593 Jun  7 14:10 carbon.amqp.conf
-rw-r--r-- 1 root root 31647 Jun  7 14:10 carbon.conf
-rw-r--r-- 1 root root  1891 Jun  7 14:10 dashboard.conf
-rw-r--r-- 1 root root  2445 Jun  7 14:10 graphTemplates.conf
-rw-r--r-- 1 root root   888 Jun  7 14:10 relay-rules.conf
-rw-r--r-- 1 root root   558 Jun  7 14:10 rewrite-rules.conf
-rw-r--r-- 1 root root   948 Jun  7 14:10 storage-aggregation.conf
-rw-r--r-- 1 root root  1289 Jun  7 14:10 storage-schemas.conf
-rw-r--r-- 1 root root   315 Jun  7 14:10 whitelist.conf

Start carbon cache:

# cd /opt/graphite/bin
root [ /opt/graphite/bin ]# ./carbon-cache.py start
Starting carbon-cache (instance a)

Send some data using nc:

echo "us.dc1.rack3.srv-3.cpu.load 4 `date +%s`" | nc -c -t localhost 2003

The data should show up in Graphite:

netcat carbon graphite

Articles tagged with netcat on N🚫NIC:

netcat

Articles tagged with graphite on Log Integrity:

2021-06-08: Hybrid DBs