Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.29 KB

README.rst

File metadata and controls

52 lines (33 loc) · 1.29 KB

carbon-table

build status

Carbon-Table backends with Gin, Trie Tree and concurrent-map that supports fast resolving Graphite-Like wildcards query. This is designed to put behind carbon-relay-ng and regsiter sendAllMatch route. That way, Graphite-Web doesn't need to send requests to all Carbon-Cache Instances for wildcard queries.

arch.png

Install

curl https://raw.githubusercontent.com/yunstanford/carbon-table/master/get-carbon-table.sh | sh

Quickstart

# http:8080, tcp:3000
./carbon-table

# send metric data
echo "test.foo 7 `date +%s`" | nc localhost 3000
echo "test.bar 7 `date +%s`" | nc localhost 3000

# expand
curl http://localhost:8080/metric/pattern/test.*/

[{"Query":"test.bar","IsLeaf":true},{"Query":"test.foo","IsLeaf":true}]

# expand
curl http://localhost:8080/metric/query/test.*/

["test.bar","test.foo"]