Skip to content

Commit

Permalink
feat: attempt to enable log collection for datadog agent
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Dec 18, 2024
1 parent 8c9b3be commit 0165bcc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions datadog-agent-migration/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ services:
- DD_API_KEY=random_string
- DD_DD_URL=http://vector:8000
- DD_HOSTNAME=testagent
- DD_LOGS_ENABLED=true

vector:
image: docker.io/timberio/vector:0.43.X-alpine
Expand Down
12 changes: 10 additions & 2 deletions datadog-agent-migration/vector.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
[sources.datadog]
type = "datadog_agent"
address = "0.0.0.0:8000"
multiple_outputs = true

[sinks.my_greptimedb]
inputs = ["datadog"]
[sinks.my_greptimedb_metrics]
inputs = ["datadog.metrics"]
type = "greptimedb_metrics"
endpoint = "greptimedb:4001"
dbname = "public"
username = ""
password = ""
new_naming=true
#tls = {}

[sinks.my_greptimedb_logs]
inputs = ["datadog.logs"]
type = "greptimedb_logs"
table = "demo_logs"
compression = "gzip"
endpoint = "http://greptimedb:4000"

0 comments on commit 0165bcc

Please sign in to comment.