Code Monkey home page Code Monkey logo

scylla-grafana-monitoring's Introduction

Scylla monitoring with Grafana and Prometheus


Notice for users of Scylla versions prior to 1.4

If you are using a Scylla version before 1.4, or if you are using Prometheus over collectd, check out the v0.1 tag.

git checkout v0.1


The monitoring infrastructure consists of several components, wrapped in docker containers:

  • prometheus - collects and stores metrics
  • grafana - dashboard server

prerequisites

  • git
  • docker

Install

git clone https://github.com/scylladb/scylla-grafana-monitoring.git
cd scylla-grafana-monitoring

Start docker service if needed

ubuntu $ sudo systemctl restart docker
centos $ sudo service docker start

Update prometheus/scylla_servers.yaml and prometheus/node_exporter_servers.yaml with the targets (server you wish to monitor). For every server there are two targets, one under scylla job which is used for the scylla metrics. Use port 9180. For example, update targets in prometheus/scylla_servers.yaml :

- targets:
  - 172.17.0.2:9180
  - 172.17.0.3:9180

Second, for general node information (disk, network, etc.) add the server under node_exporter job. Use port 9100. For example, update targets in prometheus/node_exporter_servers.yaml :

- targets:
  - 172.17.0.2:9100
  - 172.17.0.3:9100

You can also use your own target files instead of updating scylla_servers.yaml and node_exporter_servers.yaml, using the -s for scylla target file and -n for node taget file. For example:

./start-all.sh -s my_scylla_server.yaml -n my_node_exporter_servers.yml -d data_dir

Run

./start-all.sh -d data_dir

Multiple versions support

As counters change their names between versions, we create a new dashboard for each new version. We use tags to distinguish between the different versions, to keep the dashboard menu, relatively short, by default, only the last two releases are loaded. You can load specific versions by using the -v flag.

  • You can supply multiple comma delimited versions, for example to load only 1.5 and 1.6 version:
./start-all.sh -v 1.5,1.6
  • Use the all to load all available versions.

  • The master branch is called master, so to load 1.6 and master you would use:

./start-all.sh -v 1.6,master
  • If you only need the latest version you can use:
./start-all.sh -v latest

Note: The -d data_dir is optional, but without it, prometheus will erase all data between runs.

For systems in production it is recommended to use an external directory.


Connecting Scylla and the Monitoring locally - the local flag

When runing the prometheus and grafan on the same host as scylla, use the local -l flag, so processes inside the containers will share the host network stack and would have access to the localhost.

Kill

./kill-all.sh

Use

Direct your browser to your-server-ip:3000

Choose Disk and network interface

The dashboard holds a drop down menu at its upper left corner for disk and network interface. You should choose relevent disk and interface for the dashboard to show the graphs.

Update Scylla servers to send metrics

See here

Load original data to prometheus server

Additional parameters: -d data_dir

Full commandline:

./start-all.sh -d data_dir

Comment: data_dir is the local path to original data directory

Data source for Prometheus data:

scylla-grafana-monitoring's People

Contributors

tzach avatar amnonh avatar tgrabiec avatar pdziepak avatar amoskong avatar nirmaayan 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.