Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting [si_destination_compare] send failed: Invalid argument upon stats send #33

Open
eob opened this issue Sep 10, 2021 · 2 comments

Comments

@eob
Copy link

eob commented Sep 10, 2021

Hi folks!

I'm trying to configure metrics logging within a Vapor app. On my development box, I have Graphite running and collecting stats on port 2003.

The following command succeeds:

PORT=2003 SERVER=localhost echo "local.random.diceroll 4 `date +%s`" | nc ${SERVER} ${PORT}

But when I try to begin logging metrics from within the Vapor app, like so:

let statsdClient = try StatsdClient(host: "localhost", port: 2003)
MetricsSystem.bootstrap(statsdClient!)
let counter = Counter(label: "com.companyname.engine.startup")
counter.increment()

No stats are logged and I get the following log output:

[6479:7983275] [si_destination_compare] send failed: Invalid argument
[6479:7983275] [si_destination_compare] send failed: Undefined error: 0

Any clue as to what is going on? I assume it is some sort of connectivity error inside the networking layer. Thanks for any help you can provide!

@Lukasa
Copy link

Lukasa commented Sep 10, 2021

Those logs should not be relevant, I believe they're logged by the OS itself.

Are you comfortable with tcpdump or Wireshark? It would be useful to try to sniff the traffic to see if any data is being sent to graphite.

@eob
Copy link
Author

eob commented Sep 14, 2021

Lukasa,

Got it -- the data does indeed appear to be getting logged if I use the proper default UDP port (rather than the Graphite aggregator). I'll just ignore those error messages then.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants