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'
|
||||
Executable
+49
@@ -0,0 +1,49 @@
|
||||
.catalog:
|
||||
name: Datadog
|
||||
version: 11.0.580-rancher1
|
||||
description: Real-time performance tracking and visualization of your container-based application deployment
|
||||
minimum_rancher_version: v0.46.0
|
||||
questions:
|
||||
- variable: api_key
|
||||
label: Datadog Api Key
|
||||
description: Your Datadog API key
|
||||
required: true
|
||||
type: string
|
||||
- variable: global_service
|
||||
label: Global Service
|
||||
description: |
|
||||
Enable this option to capture system and Docker metrics environment-wide.
|
||||
One instance of the Datadog Agent container will be started on every host.
|
||||
required: true
|
||||
type: boolean
|
||||
default: true
|
||||
- variable: host_labels
|
||||
label: Map Host Labels to Datadog Tags
|
||||
description: |
|
||||
Comma delimited list of host labels to map to Datadog key:value tags.
|
||||
Example: 'region, instancetype'
|
||||
required: false
|
||||
type: string
|
||||
- variable: container_labels
|
||||
label: Map Container Labels to Datadog Tags
|
||||
description: |
|
||||
Comma delimited list of service labels to map to Datadog key:value tags.
|
||||
'io.rancher.stack.name' and 'io.rancher.stack_service.name' are enabled by default.
|
||||
Example: 'app, tier'
|
||||
required: false
|
||||
type: string
|
||||
- variable: statsd_standalone
|
||||
label: Standalone StatsD
|
||||
description: |
|
||||
Enable this option to run just the DogStatsD daemon without the full agent.
|
||||
The daemon aggregates and forwards StatsD metrics received on port 8125/udp.
|
||||
You probably want to disable the Global Service option with this.
|
||||
required: true
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: statsd_namespace
|
||||
label: StatsD Metric Namespace
|
||||
description: |
|
||||
Optional namespace for aggregated StatsD metrics.
|
||||
required: false
|
||||
type: string
|
||||
Reference in New Issue
Block a user