Comments (3)
Did you using latest version? I faced same issue when carbon-c-relay turn
'\n' into '_' but it was fixed some time ago.
27 авг. 2014 г. 21:51 пользователь "mhollick" [email protected]
написал:
hi,
I'm pretty sure that this is not a bug, I am just totally failing to grok
something...
If you spot what I am doing wrong, please let me know. Otherwise, please
feel free to close this issue.When carbon c relay is fed metrics from collectd all metrics relayed have
a '_' appended.
If I capture the output of collectd to a file then play it back to cc
relay with netcat everything is fine.Scenario
collectd -> carbon c relay -> carbon-cache.
I am running carbon c relay release 0.27 (need to update..)carbon cache is complaining in /var/log/carbon/listener.log
27/08/2014 19:14:07 :: invalid line received from client 127.0.0.1:55633, ignoring
27/08/2014 19:14:07 :: invalid line received from client 127.0.0.1:55633, ignoring
27/08/2014 19:14:07 :: invalid line received from client 127.0.0.1:55633, ignoring
27/08/2014 19:14:07 :: invalid line received from client 127.0.0.1:55633, ignoring
27/08/2014 19:14:07 :: invalid line received from client 127.0.0.1:55633, ignoring
27/08/2014 19:14:07 :: invalid line received from client 127.0.0.1:55633, ignoringstopping carbon-cache and replacing it with netcat:
$ nc -l 2023
vbox_twiki01.processes-httpd.ps_data 1005916160.000000 1409166917_
vbox_twiki01.processes-httpd.ps_code 190201856.000000 1409166917_
vbox_twiki01.processes-httpd.ps_stacksize 13432.000000 1409166917_
vbox_twiki01.processes-httpd.ps_cputime.user 0.000000 1409166917_
vbox_twiki01.processes-httpd.ps_cputime.syst 0.000000 1409166917_
vbox_twiki01.processes-httpd.ps_count.processes 10.000000 1409166917_
vbox_twiki01.processes-httpd.ps_count.threads 10.000000 1409166917_
vbox_twiki01.processes-httpd.ps_pagefaults.minflt 0.000000 1409166917_
vbox_twiki01.processes-httpd.ps_pagefaults.majflt 0.000000 1409166917_
vbox_twiki01.processes-httpd.ps_disk_octets.read 0.000000 1409166917_
vbox_twiki01.processes-httpd.ps_disk_octets.write 0.000000 1409166917_checking that collectd is not sending weirdness by replacing cc relay with
netcat:$ nc -l 2103
vbox_twiki01.processes-httpd.ps_count.processes 10.000000 1409167037
vbox_twiki01.processes-httpd.ps_count.threads 10.000000 1409167037
vbox_twiki01.processes-httpd.ps_pagefaults.minflt 0.000000 1409167037
vbox_twiki01.processes-httpd.ps_pagefaults.majflt 0.000000 1409167037
vbox_twiki01.processes-httpd.ps_disk_octets.read 0.000000 1409167037
vbox_twiki01.processes-httpd.ps_disk_octets.write 0.000000 1409167037
vbox_twiki01.processes-httpd.ps_disk_ops.read 0.000000 1409167037
vbox_twiki01.processes-httpd.ps_disk_ops.write 0.000000 1409167037
vbox_twiki01.processes-collectd.ps_vm 674430976.000000 1409167037
vbox_twiki01.processes-collectd.ps_rss 2420736.000000 1409167037
vbox_twiki01.processes-collectd.ps_data 642191360.000000 1409167037
vbox_twiki01.processes-collectd.ps_code 2719744.000000 1409167037
vbox_twiki01.processes-collectd.ps_stacksize 2208.000000 1409167037replacing collectd with netcat piping output into cc relay and catching
cc_relay output with netcat:terminal1$ cat ./test_metrics.txt | nc 127.0.0.1 2103
terminal2$ nc -l 2023
vbox_twiki01.processes-monit.ps_vm 127668224.000000 1409165887
vbox_twiki01.processes-monit.ps_rss 933888.000000 1409165887
vbox_twiki01.processes-monit.ps_data 78196736.000000 1409165887
vbox_twiki01.processes-monit.ps_code 7028736.000000 1409165887
vbox_twiki01.processes-monit.ps_stacksize 752.000000 1409165887
vbox_twiki01.processes-monit.ps_cputime.user 0.000000 1409165887
vbox_twiki01.processes-monit.ps_cputime.syst 0.000000 1409165887
vbox_twiki01.processes-monit.ps_count.processes 1.000000 1409165887
vbox_twiki01.processes-monit.ps_count.threads 2.000000 1409165887
vbox_twiki01.processes-monit.ps_pagefaults.minflt 0.000000 1409165887
vbox_twiki01.processes-monit.ps_pagefaults.majflt 0.000000 1409165887
vbox_twiki01.processes-monit.ps_disk_octets.read 10299.084952 1409165887configuration for carbon c relay:
cluster localhost
forward
127.0.0.1:2023
;match *
send to localhost
stop
;start command for cc relay:
/usr/bin/relay -p 2103 -w 4 -d -s -f /etc/relay.conf
collectd write_graphite configuration:
Host "localhost" Port "2103" Protocol "tcp" LogSendErrors true—
Reply to this email directly or view it on GitHub
#11.
from carbon-c-relay.
This will be the \r\n that is seen as _\n.
The following commit fixes that behaviour: 4121d6b
That commit is not in any release yet, I'm planning on making one soon, but in the meantime you could try current git head to see if that fixes the problem for you.
Please reopen if that doesn't fix the issue for you!
from carbon-c-relay.
Hi, yes that did the trick - thanks!
from carbon-c-relay.
Related Issues (20)
- Extreme CPU usage from 3.4 > 3.7 HOT 4
- Memory eating when replicating metrics or maybe due to SSL usage HOT 9
- Metrics get lost when lz4 compressed. HOT 2
- Docker image build failed due to Autoconf
- Disabling SSLv3 or other TLS versions (1.0, 1.1) and unsecure ciphers when listening ssl ? HOT 33
- Any way to have multiple threads per carbon_ch destination without duplicating service? HOT 7
- Supporting mTLS (mutual authentication) on the listener so that we may ask the client to prove who it is HOT 13
- Compiling on CentOS 7 with local OpenSSL shared libraries ? HOT 2
- Behavior of any_of doesn't seem inline with docs HOT 3
- Segmentation fault when supervisorctl start ccrelay HOT 11
- Dockerfile: add bison flex dependency for latest build HOT 4
- Do not prefix stats HOT 8
- Internal metrics not sent until restarted HOT 4
- tag values are corrupted HOT 2
- Issue with any_of causing massive lag in metrics reaching their destination HOT 11
- Segmentation fault if any cluster host can not be resolved HOT 6
- Unable to debug rules with -d -t -l flags HOT 4
- quoted expressions stop working properly HOT 10
- Support lz4 and gzip HOT 6
- Rewrite function doesn't work with tags HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carbon-c-relay.