Skip to content

alokmenghrajani/metrics

 
 

Repository files navigation

license Build status

Metrics

Indexer & Query Engine for Square's metrics.

Development

Check out the project to the development directory.

Project Structure

├── api                # list of publically exposed APIs.
│   └── backend
│       └── blueflood  # implementation of the blueflood backend.
├── assert             # helper functions to make test writing easier.
├── internal           # internal library - should not be exposed to the users.
├── main               # entry point.
│   └── common
├── mocks              # helper code to mock HTTP calls.
├── query              # logic around parsing & execution of the queries.
│   └── aggregate
└── schema             # CQL schema files.

Cassandra

We're currently using Cassandra 2.0.X. 2.1.X is unstable and is not recommended.

Download it from: http://cassandra.apache.org/download/

  • To setup schema
# Produciton schema
$CASSANDRA/bin/cqlsh -f schema/schema.cql
# Testing Schema
$CASSANDRA/bin/cqlsh -f schema/schema_test.cql

Dependencies

go get github.com/gocql/gocql
go get gopkg.in/yaml.v2

Testing

go test ./...

Committing code

Please ensure the code is correctly formatted and passes the linter.

go fmt ./...
golint ./... # TODO - exclude generated files.

About

Metrics Query Engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 93.1%
  • JavaScript 5.4%
  • Other 1.5%