Upgrade Datadog Cattle template (#159)
* datadog-rancher-init:v2.0 * datadog/docker-dd-agent:11.0.580 Changes: Support for mapping Rancher service labels to Datadog tags
This commit is contained in:
Executable
+33
@@ -0,0 +1,33 @@
|
||||
datadog-init:
|
||||
image: janeczku/datadog-rancher-init:v2.0
|
||||
net: none
|
||||
command: /bin/true
|
||||
volumes:
|
||||
- /opt/rancher
|
||||
labels:
|
||||
io.rancher.container.start_once: 'true'
|
||||
io.rancher.container.pull_image: always
|
||||
datadog-agent:
|
||||
image: datadog/docker-dd-agent:11.0.580
|
||||
entrypoint: /opt/rancher/entrypoint-wrapper.py
|
||||
command:
|
||||
- supervisord
|
||||
- -n
|
||||
- -c
|
||||
- /etc/dd-agent/supervisor.conf
|
||||
restart: always
|
||||
environment:
|
||||
API_KEY: ${api_key}
|
||||
DOGSTATSD_ONLY: "${statsd_standalone}"
|
||||
STATSD_METRIC_NAMESPACE: ${statsd_namespace}
|
||||
HOST_LABELS: ${host_labels}
|
||||
CONTAINER_LABELS: ${container_labels}
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /proc/:/host/proc/:ro
|
||||
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
|
||||
volumes_from:
|
||||
- datadog-init
|
||||
labels:
|
||||
io.rancher.scheduler.global: "${global_service}"
|
||||
io.rancher.sidekicks: 'datadog-init'
|
||||
Reference in New Issue
Block a user