Skip to content

Commit

Permalink
Test add autodiscovery.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad45123 committed May 18, 2024
1 parent 47116e2 commit 5692f60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ services:
networks:
- default
- frontend
labels:
com.datadoghq.ad.check_names: '["rabbitmq"]'
com.datadoghq.ad.init_configs: '[{}]'
com.datadoghq.ad.instances: '[{"prometheus_plugin": {"url": "http://%%host%%:15692"}}]'

service_redis:
image: redis:7.2.4
Expand All @@ -50,6 +54,10 @@ services:
retries: 3
networks:
- default
labels:
com.datadoghq.ad.check_names: '["redisdb"]'
com.datadoghq.ad.init_configs: '[{}]'
com.datadoghq.ad.instances: '[{"host": "%%host%%","port":"6379"}]'

# ----- JOBS MICROSERVICE -------
service_jobs:
Expand Down

0 comments on commit 5692f60

Please sign in to comment.