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

OPS-5392 add datadog event support #70399

Merged
merged 22 commits into from
May 15, 2024
Merged

Conversation

nirajdewani
Copy link
Contributor

@nirajdewani nirajdewani commented May 6, 2024

Description

I'd like to add support for Datadog Events.
Pasting context from OPS-5392:

Currently back pressure sends metrics to Datadog (https://app.datadoghq.com/dashboard/qnx-z63-3di/backpressure-monitoring).
We should send datadog events instead (or as well): https://docs.datadoghq.com/service_management/events/
This would enable us to do things like:

  • Trigger DD monitors for alerting purposes (eg. notifying slack / PagerDuty)
  • overlay events on top of dashboard widgets
  • add tags to events to support analysis / grouping

(Potential) To Do

Added a unit test; please let me know if/how I can test this better.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 6, 2024
@nirajdewani nirajdewani changed the title Niraj/ops 5392 add dd event OPS-5392 add datadog event support May 7, 2024
Co-authored-by: Riccardo Busetti <[email protected]>
Copy link
Contributor

@fpacifici fpacifici left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see comments inline

src/sentry/metrics/base.py Outdated Show resolved Hide resolved
src/sentry/metrics/base.py Outdated Show resolved Hide resolved
src/sentry/metrics/datadog.py Outdated Show resolved Hide resolved
src/sentry/metrics/datadog.py Show resolved Hide resolved
src/sentry/metrics/base.py Show resolved Hide resolved
Copy link
Member

@iambriccardo iambriccardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nirajdewani nirajdewani dismissed fpacifici’s stale review May 15, 2024 20:25

Already made the required changes.

@nirajdewani nirajdewani merged commit e2652bd into master May 15, 2024
47 of 48 checks passed
@nirajdewani nirajdewani deleted the niraj/OPS-5392_add-dd-event branch May 15, 2024 20:25
cmanallen pushed a commit that referenced this pull request May 21, 2024
## Description
<!-- Describe your PR here. -->
I'd like to add support for [Datadog
Events](https://docs.datadoghq.com/service_management/events/guides/dogstatsd/).
Pasting context from
[OPS-5392](https://getsentry.atlassian.net/browse/OPS-5392):
> Currently back pressure sends metrics to Datadog
([https://app.datadoghq.com/dashboard/qnx-z63-3di/backpressure-monitoring](https://app.datadoghq.com/dashboard/qnx-z63-3di/backpressure-monitoring?fromUser=false&refresh_mode=paused&view=spans&from_ts=1709132829007&to_ts=1709137896990&live=false)).
We should send datadog events instead (or as well):
https://docs.datadoghq.com/service_management/events/
This would enable us to do things like:
>- Trigger DD monitors for alerting purposes (eg. notifying slack /
PagerDuty)
>- overlay events on top of dashboard widgets
>- add tags to events to support analysis / grouping

## (Potential) To Do
Added a unit test; please let me know if/how I can test this better.

[OPS-5392]:
https://getsentry.atlassian.net/browse/OPS-5392?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

---------

Co-authored-by: Riccardo Busetti <[email protected]>
nirajdewani added a commit that referenced this pull request May 21, 2024
### Description
Now that sentry
[supports](#70399) Datadog
events, \
updating backpressure code to generate events as well (in addition to
metrics).

### Next steps
- Send events using dogshell
- Update event body if the need be
@github-actions github-actions bot locked and limited conversation to collaborators May 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants