Shell
How to send metrics using Shell
Contents
echo "YOUR-API-KEY.foo 1.2" | nc carbon.hostedgraphite.com 2003
echo "YOUR-API-KEY.foo 1.2" | nc -uw0 carbon.hostedgraphite.com 2003
echo "YOUR-API-KEY.con_users 1.3" | ncat --ssl carbon.hostedgraphite.com 20030
echo "YOUR-API-KEY.con_users 1.3" | openssl s_client -connect carbon.hostedgraphite.com:20030
curl https://[email protected]/api/v1/sink --data-binary "foo 1.2"
curl https://YOUR-AP[email protected]/api/v1/sink --data-binary @data.txt
where data.txt contains multiple metrics and values on a separate line:
Last modified 4mo ago