You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2023. It is now read-only.
Copy file name to clipboardexpand all lines: idx/cassandra/cassandra.go
+29-38
Original file line number
Diff line number
Diff line change
@@ -13,27 +13,12 @@ import (
13
13
"github.com/grafana/metrictank/idx"
14
14
"github.com/grafana/metrictank/idx/memory"
15
15
"github.com/grafana/metrictank/stats"
16
+
"github.com/grafana/metrictank/util"
16
17
"github.com/raintank/worldping-api/pkg/log"
17
18
"github.com/rakyll/globalconf"
18
19
"gopkg.in/raintank/schema.v1"
19
20
)
20
21
21
-
constKeyspaceSchema=`CREATE KEYSPACE IF NOT EXISTS %s WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1} AND durable_writes = true`
22
-
constTableSchema=`CREATE TABLE IF NOT EXISTS %s.metric_idx (
23
-
id text,
24
-
orgid int,
25
-
partition int,
26
-
name text,
27
-
metric text,
28
-
interval int,
29
-
unit text,
30
-
mtype text,
31
-
tags set<text>,
32
-
lastupdate int,
33
-
PRIMARY KEY (partition, id)
34
-
) WITH compaction = {'class': 'SizeTieredCompactionStrategy'}
35
-
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}`
36
-
37
22
var (
38
23
// metric idx.cassadra.query-insert.ok is how many insert queries for a metric completed successfully (triggered by an add or an update)
0 commit comments