forked from go-graphite/graphite-clickhouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): add 'wildcard-min-distance' config option (go-graphite#296
- Loading branch information
Showing
8 changed files
with
317 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[common] | ||
|
||
[data] | ||
path = "/etc/carbon-clickhouse/data" | ||
chunk-interval = "1s" | ||
chunk-auto-interval = "" | ||
|
||
[upload.graphite_index] | ||
type = "index" | ||
table = "graphite_index" | ||
url = "{{ .CLICKHOUSE_URL }}/" | ||
timeout = "2m30s" | ||
cache-ttl = "1h" | ||
|
||
[upload.graphite_tags] | ||
type = "tagged" | ||
table = "graphite_tags" | ||
threads = 3 | ||
url = "{{ .CLICKHOUSE_URL }}/" | ||
timeout = "2m30s" | ||
cache-ttl = "1h" | ||
|
||
[upload.graphite_reverse] | ||
type = "points-reverse" | ||
table = "graphite_reverse" | ||
url = "{{ .CLICKHOUSE_URL }}/" | ||
timeout = "2m30s" | ||
zero-timestamp = false | ||
|
||
[upload.graphite] | ||
type = "points" | ||
table = "graphite" | ||
url = "{{ .CLICKHOUSE_URL }}/" | ||
timeout = "2m30s" | ||
zero-timestamp = false | ||
|
||
[tcp] | ||
listen = ":2003" | ||
enabled = true | ||
drop-future = "0s" | ||
drop-past = "0s" | ||
|
||
[logging] | ||
file = "/etc/carbon-clickhouse/carbon-clickhouse.log" | ||
level = "debug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[common] | ||
listen = "{{ .GCH_ADDR }}" | ||
max-cpu = 0 | ||
max-metrics-in-render-answer = 10000 | ||
max-metrics-per-target = 10000 | ||
headers-to-log = [ "X-Ctx-Carbonapi-Uuid" ] | ||
|
||
[clickhouse] | ||
url = "{{ .CLICKHOUSE_URL }}/?max_rows_to_read=500000000&max_result_bytes=1073741824&readonly=2&log_queries=1" | ||
data-timeout = "30s" | ||
|
||
wildcard-min-distance = 1 | ||
|
||
index-table = "graphite_index" | ||
index-use-daily = true | ||
index-timeout = "1m" | ||
internal-aggregation = true | ||
|
||
tagged-table = "graphite_tags" | ||
tagged-autocomplete-days = 1 | ||
|
||
[[data-table]] | ||
# # clickhouse table name | ||
table = "graphite" | ||
# # points in table are stored with reverse path | ||
reverse = false | ||
rollup-conf = "auto" | ||
|
||
[[logging]] | ||
logger = "" | ||
file = "{{ .GCH_DIR }}/graphite-clickhouse.log" | ||
level = "info" | ||
encoding = "json" | ||
encoding-time = "iso8601" | ||
encoding-duration = "seconds" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
[test] | ||
precision = "10s" | ||
|
||
[[test.clickhouse]] | ||
version = "21.3" | ||
dir = "tests/clickhouse/rollup" | ||
|
||
[[test.clickhouse]] | ||
version = "22.8" | ||
dir = "tests/clickhouse/rollup" | ||
|
||
[[test.clickhouse]] | ||
version = "24.2" | ||
dir = "tests/clickhouse/rollup" | ||
|
||
[test.carbon_clickhouse] | ||
template = "carbon-clickhouse.conf.tpl" | ||
|
||
[[test.graphite_clickhouse]] | ||
template = "graphite-clickhouse.conf.tpl" | ||
|
||
[[test.input]] | ||
name = "team_one.prod.test.metric_one" | ||
points = [{value = 1.0, time = "rnow-10"}] | ||
|
||
[[test.input]] | ||
name = "team_two.stage.test.metric_one" | ||
points = [{value = 1.0, time = "rnow-10"}] | ||
|
||
[[test.input]] | ||
name = "team_one.dev.test.metric_two" | ||
points = [{value = 1.0, time = "rnow-10"}] | ||
|
||
[[test.input]] | ||
name = "team_one.dev.nontest.metric_one" | ||
points = [{value = 1.0, time = "rnow-10"}] | ||
|
||
[[test.render_checks]] | ||
from = "rnow-10" | ||
until = "rnow+1" | ||
timeout = "1h" | ||
targets = [ | ||
"team_one.prod.test.metric_one", | ||
] | ||
|
||
[[test.render_checks.result]] | ||
name = "team_one.prod.test.metric_one" | ||
path = "team_one.prod.test.metric_one" | ||
consolidation = "avg" | ||
start = "rnow-10" | ||
stop = "rnow+10" | ||
step = 10 | ||
req_start = "rnow-10" | ||
req_stop = "rnow+10" | ||
values = [1.0, nan] | ||
|
||
|
||
[[test.render_checks]] | ||
from = "rnow-10" | ||
until = "rnow+1" | ||
timeout = "1h" | ||
targets = [ | ||
"*.dev.test.metric_two", | ||
] | ||
|
||
[[test.render_checks.result]] | ||
name = "team_one.dev.test.metric_two" | ||
path = "*.dev.test.metric_two" | ||
consolidation = "avg" | ||
start = "rnow-10" | ||
stop = "rnow+10" | ||
step = 10 | ||
req_start = "rnow-10" | ||
req_stop = "rnow+10" | ||
values = [1.0, nan] | ||
|
||
[[test.render_checks]] | ||
from = "rnow-10" | ||
until = "rnow+1" | ||
timeout = "1h" | ||
targets = [ | ||
"*.*.test.metric_one", | ||
] | ||
|
||
[[test.render_checks.result]] | ||
name = "team_one.prod.test.metric_one" | ||
path = "*.*.test.metric_one" | ||
consolidation = "avg" | ||
start = "rnow-10" | ||
stop = "rnow+10" | ||
step = 10 | ||
req_start = "rnow-10" | ||
req_stop = "rnow+10" | ||
values = [1.0, nan] | ||
|
||
[[test.render_checks.result]] | ||
name = "team_two.stage.test.metric_one" | ||
path = "*.*.test.metric_one" | ||
consolidation = "avg" | ||
start = "rnow-10" | ||
stop = "rnow+10" | ||
step = 10 | ||
req_start = "rnow-10" | ||
req_stop = "rnow+10" | ||
values = [1.0, nan] | ||
|
||
|
||
[[test.render_checks]] | ||
from = "rnow-10" | ||
until = "rnow+1" | ||
timeout = "1h" | ||
targets = [ | ||
"team_two.stage.test.*", | ||
] | ||
|
||
[[test.render_checks.result]] | ||
name = "team_two.stage.test.metric_one" | ||
path = "team_two.stage.test.*" | ||
consolidation = "avg" | ||
start = "rnow-10" | ||
stop = "rnow+10" | ||
step = 10 | ||
req_start = "rnow-10" | ||
req_stop = "rnow+10" | ||
values = [1.0, nan] | ||
|
||
[[test.render_checks]] | ||
from = "rnow-10" | ||
until = "rnow+1" | ||
timeout = "1h" | ||
targets = [ | ||
"team_one.*.test.*", | ||
] | ||
|
||
[[test.render_checks.result]] | ||
name = "team_one.prod.test.metric_one" | ||
path = "team_one.*.test.*" | ||
consolidation = "avg" | ||
start = "rnow-10" | ||
stop = "rnow+10" | ||
step = 10 | ||
req_start = "rnow-10" | ||
req_stop = "rnow+10" | ||
values = [1.0, nan] | ||
|
||
[[test.render_checks.result]] | ||
name = "team_one.dev.test.metric_two" | ||
path = "team_one.*.test.*" | ||
consolidation = "avg" | ||
start = "rnow-10" | ||
stop = "rnow+10" | ||
step = 10 | ||
req_start = "rnow-10" | ||
req_stop = "rnow+10" | ||
values = [1.0, nan] | ||
|
||
[[test.render_checks]] | ||
from = "rnow-10" | ||
until = "rnow+1" | ||
timeout = "1h" | ||
targets = [ | ||
"*.prod.test.*", | ||
] | ||
error_regexp = "^400: query has wildcards way too early at the start and at the end of it" | ||
|
||
[[test.render_checks]] | ||
from = "rnow-10" | ||
until = "rnow+1" | ||
timeout = "1h" | ||
targets = [ | ||
"*.*.test.*", | ||
] | ||
error_regexp = "^400: query has wildcards way too early at the start and at the end of it" | ||
|
||
[[test.render_checks]] | ||
from = "rnow-10" | ||
until = "rnow+1" | ||
timeout = "1h" | ||
targets = [ | ||
"*.*.*.*", | ||
] | ||
error_regexp = "^400: query has wildcards way too early at the start and at the end of it" | ||
|
||
|
||
[[test.render_checks]] | ||
from = "rnow-10" | ||
until = "rnow+1" | ||
timeout = "1h" | ||
targets = [ | ||
"*.*", | ||
] | ||
error_regexp = "^400: query has wildcards way too early at the start and at the end of it" |