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

New Datadog Event Sink #7218

Closed
atibdialpad opened this issue Apr 22, 2021 · 8 comments · Fixed by #7678
Closed

New Datadog Event Sink #7218

atibdialpad opened this issue Apr 22, 2021 · 8 comments · Fixed by #7678
Assignees
Labels
domain: sinks Anything related to the Vector's sinks provider: datadog Anything `datadog` service provider related type: feature A value-adding code addition that introduce new functionality.

Comments

@atibdialpad
Copy link

Datadog has concepts of a) Metrics b) Events and c) Logs. I see that Vector has already implemented sinks for Datadog Metrics (#585) and Datadog Logs (#1469) This is a feature request for a new Datadog_Event sink.

In addition: I was able to send out Datadog metrics to Datadog in a couple of ways:
a) Using the standard datadog_metrics sink
b) Using the statsd sink (since I have the datadog agent running on my machine that runs dogstatsd as part of itself)

It would be great if Events could also be sent out to datadog similarly in both the ways.

@atibdialpad atibdialpad added the type: feature A value-adding code addition that introduce new functionality. label Apr 22, 2021
@binarylogic binarylogic added provider: datadog Anything `datadog` service provider related domain: sinks Anything related to the Vector's sinks labels Apr 22, 2021
@atibdialpad
Copy link
Author

atibdialpad commented May 13, 2021

@binarylogic @jszwedko would it be possible to get this done in the near term ? Our transition from logstash to Vector depends on this one feature. Given that vector already has Datadog logs and metrics sinks, I am assuming that this should be trivial. I can also look in it if you think it is a simple ask.

@binarylogic
Copy link
Contributor

@atibdialpad yes, we'll prioritize. Thanks for opening.

@atibdialpad
Copy link
Author

atibdialpad commented Jun 22, 2021

Hey @ktff @binarylogic Can you please share the datadog event sink configs (couldn't find it in docs). Wanted to give it a go. Also when can we expect this released ?

@jszwedko
Copy link
Member

Hey @atibdialpad ,

You can find the unrendered docs here: https://github.com/timberio/vector/blob/master/docs/reference/components/sinks/datadog_events.cue . They will be published when the sink is released (the third week of July), but you can use the latest nightly build if you want to check it out now.

@ktff
Copy link
Contributor

ktff commented Jun 24, 2021

@atibdialpad you can also checkout docs of similar sink https://vector.dev/docs/reference/configuration/sinks/datadog_logs/.
The differences are:

  • type = "datadog_events"
  • batch, compression, encoding, region options are not supported

@atibdialpad
Copy link
Author

atibdialpad commented Jul 28, 2021

Hi @ktff
Do I need to manually delete/prune fields from the original event that datadog event doesn't expect by default ?
The dataddog event api seems to accept these fields : (Ref : https://docs.datadoghq.com/api/latest/events/#post-an-event )

event(<TITLE>, <TEXT>, <TIMESTAMP>, <HOSTNAME>, <AGGREGATION_KEY>, <PRIORITY>, <SOURCE_TYPE_NAME>, <ALERT_TYPE>, <TAGS>)

@atibdialpad
Copy link
Author

I was able to get the events out to datadog events server by manually pruning all the non datadog required fields. Either this is a required step (@ktff can confirm) or may be some of the fields from the original event were poorly structured.

Another interesting point that I noticed was, The datadog_event sink's event.tag works exactly like how datadog treats tags (array of strings) however in datadog_metric sink, tags are objects (a dict). Had this discussion sometime last week in discord, will create an issue for better tracking.

@ktff
Copy link
Contributor

ktff commented Jul 30, 2021

@atibdialpad the sink it self should prune excess fields. I'll recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: sinks Anything related to the Vector's sinks provider: datadog Anything `datadog` service provider related type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants