Coder Social home page Coder Social logo

try-cortex's Introduction

This Docker composition implements the guide for running Cortex with Cassandra with a single-node Cassandra container and a single-node Cortex container. It also includes Prometheus for some starter data scraping and Grafana for visualization of Cortex.

Quick start

Start up Cassandra

docker-compose up -d cassandra

Repeat the following until cassandra service shows "Up (healthy)" in the state column:

docker-compose ps

Create Cortex keyspace in Cassandra:

docker-compose exec cassandra \
  cqlsh -e "CREATE KEYSPACE cortex WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 1};"

Start up remainder of services:

docker-compose up -d

Logs of all services can be followed using:

docker-compose logs -f

Access Grafana from a browser at http://localhost:3000/, where the default login is admin/admin. You can always "change" the new password to be "admin" to keep things simple for local testing.

A Cortex datasource is pre-create and Prometheus is initially configured to scrape itself and Cortex, so you can start by creating a new dashboard or exploring the data.

For example:

Tear down

The following will remove the containers and volumes:

docker-compose down -v

try-cortex's People

Contributors

itzg avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.