-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #464 from cbowman0/issue461
Support stop in aggregate section without send to.
- Loading branch information
Showing
6 changed files
with
72 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,6 +126,7 @@ CRTESTS = \ | |
issue357 \ | ||
issue369 \ | ||
issue448 \ | ||
issue461 \ | ||
issue462 \ | ||
server-type \ | ||
basic \ | ||
|
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,24 @@ | ||
cluster default | ||
fnv1a_ch replication 1 | ||
127.0.0.1:2103 proto tcp | ||
; | ||
|
||
# metric name reported by collectd: collectd.$hostname.cpu.$core-id.percent.$type | ||
# aggregate target metric name: collectd.$hostname.aggregated.cpu.total_cores | ||
aggregate | ||
^collectd\.(.+)\.cpu\.([0-9]+)\.percent\.idle | ||
^collectd\.(ABC-.+)\.cpu\.([0-9]+)\.percent\.idle | ||
^collectd\.ABC-(.+)\.cpu\.([0-9]+)\.percent\.idle | ||
^collectd\.([^.]+)\.cpu\.([0-9]+)\.percent\.idle | ||
every 10 seconds | ||
expire after 15 seconds | ||
compute count write to | ||
collectd.\1.aggregated.cpu.total_cores | ||
stop | ||
; | ||
|
||
match * | ||
send to | ||
default | ||
stop | ||
; |
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,42 @@ | ||
listen | ||
type linemode | ||
2003 proto tcp | ||
2003 proto udp | ||
/tmp/.s.carbon-c-relay.2003 proto unix | ||
; | ||
|
||
statistics | ||
submit every 60 seconds | ||
prefix with carbon.relays.test_hostname | ||
; | ||
|
||
cluster default | ||
fnv1a_ch replication 1 | ||
127.0.0.1:2103 | ||
; | ||
|
||
aggregate | ||
^collectd\.(.+)\.cpu\.([0-9]+)\.percent\.idle | ||
^collectd\.(ABC-.+)\.cpu\.([0-9]+)\.percent\.idle | ||
^collectd\.ABC-(.+)\.cpu\.([0-9]+)\.percent\.idle | ||
^collectd\.([^.]+)\.cpu\.([0-9]+)\.percent\.idle | ||
every 10 seconds | ||
expire after 15 seconds | ||
timestamp at end of bucket | ||
compute count write to | ||
collectd.\1.aggregated.cpu.total_cores | ||
stop | ||
; | ||
match * | ||
send to default | ||
stop | ||
; | ||
|
||
aggregation | ||
^collectd\.(.+)\.cpu\.([0-9]+)\.percent\.idle (regex) -> collectd.test_host.cpu.42.percent.idle | ||
count(collectd.\1.aggregated.cpu.total_cores) -> collectd.test_host.aggregated.cpu.total_cores | ||
stop | ||
aggregation | ||
^collectd\.(.+)\.cpu\.([0-9]+)\.percent\.idle (regex) -> collectd.test_host2.cpu.42.percent.idle | ||
count(collectd.\1.aggregated.cpu.total_cores) -> collectd.test_host2.aggregated.cpu.total_cores | ||
stop |
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,2 @@ | ||
collectd.test_host.cpu.42.percent.idle | ||
collectd.test_host2.cpu.42.percent.idle |