forked from Dark0096/graphene
-
Notifications
You must be signed in to change notification settings - Fork 4
Quick Start
dark edited this page Jan 12, 2020
·
8 revisions
You can easily run graphene locally using docker.
This makes it easy to see how data is stored in Elasticsearch and Cassandra.
Go to https://github.com/graphene-monitoring/graphene-docker
and then do it like belows:
Firstly, run infrastructure docker
$ docker-compose up -dSecond, Create Cassandra keyspace and table for metric data.
$ docker exec -it cassandra /bin/bash
$ cqlsh
$ CREATE KEYSPACE metric WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
$ CREATE TABLE metric.metric (
period int,
rollup int,
tenant text,
path text,
time bigint,
data list<double>,
PRIMARY KEY ((tenant, period, rollup, path), time)
) WITH
bloom_filter_fp_chance=0.010000 AND
caching='KEYS_ONLY' AND
comment='' AND
dclocal_read_repair_chance=0.000000 AND
gc_grace_seconds=864000 AND
index_interval=128 AND
read_repair_chance=0.000000 AND
replicate_on_write='true' AND
populate_io_cache_on_flush='false' AND
default_time_to_live=0 AND
speculative_retry='NONE' AND
memtable_flush_period_in_ms=0 AND
compaction = {'sstable_size_in_mb': '640', 'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'} AND
compression={'sstable_compression': 'LZ4Compressor'};Finally, you can test like below:
// Graphite old version
$ echo "foo.bar 1 `date +%s`" | nc localhost 2003// Graphite tag version
$ echo "foo.bar;host=local 1 `date +%s`" | nc localhost 2003$ open localhost
// Login grafana using
// id : admin
// password : admin123