Skip to content

About

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

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

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

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages