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

feat: init commit of datadog migration demo #67

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
55 changes: 55 additions & 0 deletions datadog-agent-migration/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
services:
envsubst:
image: docker.io/widerplan/envsubst
command: "-i /config_input/vector.toml -o /config_output/vector.toml"
volumes:
- ./vector.toml:/config_input/vector.toml
- config:/config_output
env_file:
- path: "greptime.env"
required: false
init: true

greptimedb:
image: docker.io/greptime/greptimedb:v0.11.0
command: standalone start --http-addr=0.0.0.0:4000 --rpc-addr=0.0.0.0:4001 --mysql-addr=0.0.0.0:4002 --postgres-addr 0.0.0.0:4003
ports:
- 24000:4000
- 24001:4001
- 24002:4002
- 24003:4003
networks:
- demo-network
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:4000/health" ]
interval: 3s
timeout: 3s
retries: 5

datadog_agent:
image: docker.io/datadog/agent:7
networks:
- demo-network
environment:
- 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
networks:
- demo-network
volumes:
- config:/config_data
command: "-c /config_data/vector.toml"
depends_on:
envsubst:
condition: service_completed_successfully


networks:
demo-network:

volumes:
config:
21 changes: 21 additions & 0 deletions datadog-agent-migration/vector.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[sources.datadog]
type = "datadog_agent"
address = "0.0.0.0:8000"
multiple_outputs = true

[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"
Loading