Coder Social home page Coder Social logo

cassandra-monitoring-1's Introduction

Grafana and Prometheus Monitoring Apache Cassandra

This repo contains everthing needed to lauch docker containers with Prometheus and Grafana to monitor an Apache Cassandra cluster. The new provisioning features of Grafana 5.x are used to configure the datasource and import the dashboards.

Prerequisites

Earlier versions will work but certain Grafana dashboard metrics may not load

Here's an Ansible role which can install the exporter for you on an RHEL based OS: Cassandra JMX Exporter

  • Node Exporter version 0.16.0 running on the Cassandra cluster nodes

Earlier versions will work but several metric names were changed in 0.16 and certain Grafana metrics may not load

Usage

  • Clone the repo and change directories into it
git clone https://github.com/soccerties/cassandra-monitoring.git
cd cassandra-monitoring
  • Edit the json files prometheus/tg_cassandra.json and prometheus/tg_node.json and define your collection endpoints
[
  {
    "targets": [ 
      "192.168.22.200:7070", 
      "192.168.22.129:7070", 
      "192.168.22.131:7070", 
      "192.168.22.146:7070", 
      "192.168.22.120:7070",
      "192.168.22.136:7070" 
    ],
    "labels": {
      "cluster": "test_cluster"
    }
  }
]
[
  {
    "targets": [ 
      "192.168.22.200:9100", 
      "192.168.22.129:9100", 
      "192.168.22.131:9100", 
      "192.168.22.146:9100", 
      "192.168.22.120:9100",
      "192.168.22.136:9100" 
    ],
    "labels": {
      "cluster": "test_cluster"
    }
  }
]
  • Edit any other parameters you'd like in the docker-compose.yaml file. Such as the Grafana admin password. Then launch the docker containers
docker-compose up -d

That's it! If there were no erros you can open a browser and visit the Grafana interface and login (http://localhost:3000/)

Dashboards

4 Grafana dashboards are included

  • C* Cluster Overview C* Cluster Overview
  • C* Cluster Metrics C* Cluster Metrics
  • C* Table Metrics C* Table Metrics
  • System Metrics System Metrics

cassandra-monitoring-1's People

Contributors

soccerties avatar

Watchers

Nagaraj Lakkarasu 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.