Skip to content

Commit 3ea3867

Browse files
committed
Merge branch 'custom-receivers'
2 parents 8e721ba + f835775 commit 3ea3867

File tree

41 files changed

+1716
-486
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1716
-486
lines changed

.gitmodules

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,15 @@
1919
[submodule "vendor/github.com/sevlyar/go-daemon"]
2020
path = vendor/github.com/sevlyar/go-daemon
2121
url = https://github.com/sevlyar/go-daemon
22+
[submodule "vendor/github.com/uber-go/zap"]
23+
path = vendor/github.com/uber-go/zap
24+
url = https://github.com/uber-go/zap
25+
[submodule "vendor/github.com/lomik/zapwriter"]
26+
path = vendor/github.com/lomik/zapwriter
27+
url = https://github.com/lomik/zapwriter
28+
[submodule "vendor/github.com/lomik/stop"]
29+
path = vendor/github.com/lomik/stop
30+
url = https://github.com/lomik/stop
31+
[submodule "vendor/github.com/uber-go/atomic"]
32+
path = vendor/github.com/uber-go/atomic
33+
url = https://github.com/uber-go/atomic

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ submodules:
1414
git submodule update --recursive
1515

1616
$(NAME):
17-
$(GO) build $(NAME).go
17+
$(GO) build github.com/lomik/$(NAME)
1818

1919
gox-build:
2020
rm -rf out
@@ -59,4 +59,4 @@ fpm-build-rpm:
5959
--config-files /etc/$(NAME)/$(NAME).conf \
6060
out/$(NAME)-linux-$(ARCH)=/usr/bin/$(NAME) \
6161
deploy/systemd/$(NAME).service=/usr/lib/systemd/system/$(NAME).service \
62-
out/root/=/
62+
out/root/=/

README.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ Usage of carbon-clickhouse:
5151

5252
```toml
5353
[common]
54-
# If logfile is empty use stderr
55-
logfile = "/var/log/carbon-clickhouse/carbon-clickhouse.log"
56-
# Logging error level. Valid values: "debug", "info", "warn", "warning", "error"
57-
loglevel = "info"
5854
# Prefix for store all internal carbon-clickhouse graphs. Supported macroses: {host}
5955
metric-prefix = "carbon.agents.{host}"
6056
# Endpoint for store internal carbon metrics. Valid values: "" or "local", "tcp://host:port", "udp://host:port"
@@ -64,6 +60,12 @@ metric-interval = "1m0s"
6460
# GOMAXPROCS
6561
max-cpu = 1
6662

63+
[logging]
64+
# "stderr", "stdout" can be used as file name
65+
file = "/var/log/carbon-clickhouse/carbon-clickhouse.log"
66+
# Logging error level. Valid values: "debug", "info", "warn" "error"
67+
level = "info"
68+
6769
[clickhouse]
6870
# Url to ClickHouse http port.
6971
url = "http://localhost:8123/"
@@ -82,27 +84,18 @@ tree-timeout = "1m0s"
8284
# Folder for buffering received data
8385
path = "/data/carbon-clickhouse/"
8486
# Internal queue size between receiver and writer to files
85-
input-buffer = 1048576
86-
# Rotate (and upload) file every N bytes
87-
chunk-bytes = 134217728
88-
# And every interval seconds.
87+
# Rotate (and upload) file interval.
8988
# Minimize chunk-interval for minimize lag between point receive and store
9089
chunk-interval = "1s"
9190

9291
[udp]
9392
listen = ":2003"
9493
enabled = true
95-
log-incomplete = false
9694

9795
[tcp]
9896
listen = ":2003"
9997
enabled = true
10098

101-
[pickle]
102-
listen = ":2004"
103-
max-message-size = 67108864
104-
enabled = true
105-
10699
[pprof]
107100
listen = "localhost:7007"
108101
enabled = false

_vendor/src/github.com/Sirupsen

Lines changed: 0 additions & 1 deletion
This file was deleted.

_vendor/src/github.com/howeyc

Lines changed: 0 additions & 1 deletion
This file was deleted.

_vendor/src/github.com/hydrogen18

Lines changed: 0 additions & 1 deletion
This file was deleted.

_vendor/src/github.com/kardianos

Lines changed: 0 additions & 1 deletion
This file was deleted.

_vendor/src/github.com/lomik/go-carbon

Lines changed: 0 additions & 1 deletion
This file was deleted.

_vendor/src/github.com/lomik/stop

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../vendor/github.com/lomik/stop
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../vendor/github.com/lomik/zapwriter

0 commit comments

Comments
 (0)