Graphite does two things:
- Store numeric time-series data
- Render graphs of this data on demand
What Graphite does not do is collect data for you, however there are some tools out there that know
## Disable ipv6 | |
```sh | |
sudo nano /etc/sysctl.conf | |
net.ipv6.conf.all.disable_ipv6 = 1 | |
net.ipv6.conf.default.disable_ipv6 = 1 | |
net.ipv6.conf.lo.disable_ipv6 = 1 | |
``` | |
## Java alternatives | |
```sh |
import json | |
from requests import Request, Session | |
from requests_oauthlib import OAuth1 | |
# <consumer_key>:<token_key>:<token_secret> | |
# xxxxxxxxxxxxxx:yyyyyyyyyyy:zzzzzzzzzzzzzz | |
auth1 = OAuth1(u'xxxxxxxxxxxxxx', u'', | |
u'yyyyyyyyyyy', u'zzzzzzzzzzzzzz') |
Graphite does two things:
What Graphite does not do is collect data for you, however there are some tools out there that know
#!/bin/bash | |
# Perform installation as root | |
# Install prereqs | |
yum -y install libcurl libcurl-devel rrdtool rrdtool-devel rrdtool-prel libgcrypt-devel gcc make gcc-c++ | |
# Get Collectd, untar it, make it and install | |
wget http://collectd.org/files/collectd-5.4.0.tar.gz | |
tar zxvf collectd-5.4.0.tar.gz |
# block user agents from site access | |
RewriteCond %{HTTP_USER_AGENT} .*(80legs) [NC] | |
RewriteRule ^(.*)$ - [F] | |