Skip to content

Add Datadog logsink support and update response codes #994

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ requestBody:
port: 514
tls: false
format: rfc5424
Create a datadog logsink:
value:
sink_name: logs-sink
sink_type: datadog
config:
datadog_api_key: iehihrihihr4ur74724274874
extra_tags_prefix: myapp
site: datadog.us3.com


responses:
"201":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ parameters:
- $ref: "parameters.yml#/logsink_id"

responses:
"200":
"204":
$ref: "../../shared/responses/no_content.yml"

"401":
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type: object
properties:
datadog_api_key:
type: string
example: iehihrihihr4ur74724274874
description: >-
Datadog API key
extra_tags_prefix:
type: string
example: myapp
description: >-
Extra tags prefix
site:
type: string
example: datadog.us3.com
description: >-
Datadog site

required:
- datadog_api_key
- extra_tags_prefix
- site
1 change: 1 addition & 0 deletions specification/resources/databases/models/logsink_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ properties:
- rsyslog
- elasticsearch
- opensearch
- datadog
example: rsyslog
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ properties:
- rsyslog
- elasticsearch
- opensearch
- datadog
example: rsyslog
3 changes: 2 additions & 1 deletion specification/resources/databases/models/logsink_create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ allOf:
anyOf:
- $ref: './logsink/rsyslog_logsink.yml'
- $ref: './logsink/elasticsearch_logsink.yml'
- $ref: './logsink/opensearch_logsink.yml'
- $ref: './logsink/opensearch_logsink.yml'
- $ref: './logsink/datadog_logsink.yml'
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious if we can update datadog logsink?

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ allOf:
- $ref: './logsink/rsyslog_logsink.yml'
- $ref: './logsink/elasticsearch_logsink.yml'
- $ref: './logsink/opensearch_logsink.yml'
- $ref: './logsink/datadog_logsink.yml'
example:
config:
server: 192.168.0.1
Expand Down
10 changes: 10 additions & 0 deletions specification/resources/databases/responses/logsink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,13 @@ content:
port: 514
tls: false
format: rfc5424
Create a datadog logsink:
value:
sink:
sink_id: "dfcc9f57d86bf58e321c2c6c31c7a971be244ac7"
sink_name: logs-sink
sink_type: datadog
config:
datadog_api_key: iehihrihihr4ur74724274874
extra_tags_prefix: myapp
site: datadog.us3.com