Skip to content

Commit

Permalink
feat: init commit of datadog migration demo
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Dec 17, 2024
1 parent 3cd0135 commit 8c9b3be
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
54 changes: 54 additions & 0 deletions datadog-agent-migration/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
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

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:
13 changes: 13 additions & 0 deletions datadog-agent-migration/vector.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[sources.datadog]
type = "datadog_agent"
address = "0.0.0.0:8000"

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

0 comments on commit 8c9b3be

Please sign in to comment.