Skip to content

Carbon-Table backends with Gin and Trie Tree that supports fast resolving Graphite-Like wildcards query.

License

Notifications You must be signed in to change notification settings

yunstanford/carbon-table

Repository files navigation

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"]

About

Carbon-Table backends with Gin and Trie Tree that supports fast resolving Graphite-Like wildcards query.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published