Created
December 24, 2014 01:10
-
-
Save remh/deed8245ba74784f51de to your computer and use it in GitHub Desktop.
This file contains hidden or 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
--- /opt/datadog-agent/agent/dogstatsd.py 2013-11-25 21:25:21.000000000 +0000 | |
+++ /opt/datadog-agent/agent/dogstatsd_debug.py 2013-12-09 23:26:36.000000000 +0000 | |
@@ -254,6 +254,7 @@ | |
ready = select_select(sock, [], [], timeout) | |
if ready[0]: | |
message = socket_recv(buffer_size) | |
+ log.info(message) | |
aggregator_submit(message) | |
if should_forward: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We don't have debug logging in dogstatsd as it can potentially receive a huge amount of data and logging the incoming udp packets will kill cpu/disk. Sometimes we need to see that data though when trying to debug dogstatsd submission, so here is a hacky way to do it.
To apply it:
Check the dogstatsd log (in /var/log/datadog/dogstatsd.log )
To undo it: