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

Unable to ship metrics to datadog via UDS protocol #242

Open
pwmb opened this issue Jan 3, 2023 · 1 comment
Open

Unable to ship metrics to datadog via UDS protocol #242

pwmb opened this issue Jan 3, 2023 · 1 comment

Comments

@pwmb
Copy link

pwmb commented Jan 3, 2023

Using uds to send metrics and traces to datadog, the traces are sent correctly but while trying to send metrics getting these errors

This is how the client is created:

export default new StatsD({
  path: 'unix:///var/run/datadog/dsd.socket',
  prefix: 'parcel-tracking-services',
  errorHandler: (err) => {
    console.log(`Datadog metrics error, ${err.message}`);
  },
  protocol: 'uds',
});

Getting this error:
Datadog metrics error, connect -2


We are sending metrics like so:

metrics.increment(MetricsKeys.NEW_RECORD_INSERTED, 1, (err, bytes) => {
  Logger.warn(`MetricsError = ${err?.message}`, { requestId });
});

Getting this error:
MetricsError = Socket not created properly. Check previous errors for details.

@bdeitte
Copy link
Collaborator

bdeitte commented Jan 30, 2023

Hi @pwmb I am not sure from this information what is going wrong. We do have UDS tests and other people using this. Let me know if this ended up working out for you (given my slow reply here) or if you have any more details on this.

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