From df1592a3d2c6f6cfb2879e741454fcd61bcf3e50 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Mon, 13 Aug 2018 14:06:54 +0200 Subject: [PATCH] feat(templates): add datadog agent templates --- templates.json | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/templates.json b/templates.json index b83f0c2e0..97d7f2b61 100644 --- a/templates.json +++ b/templates.json @@ -500,6 +500,38 @@ } ] }, + { + "type": 1, + "title": "Datadog agent", + "description": "Collect events and metrics", + "categories": ["Monitoring"], + "platform": "linux", + "logo": "https://portainer.io/images/logos/datadog_agent.png", + "image": "datadog/agent:latest", + "env": [ + { + "name": "DD_API_KEY", + "label": "Datadog API key" + } + ], + "volumes": [ + { + "container": "/var/run/docker.sock", + "bind": "/var/run/docker.sock", + "readonly": true + }, + { + "container": "/host/sys/fs/cgroup", + "bind": "/sys/fs/cgroup", + "readonly": true + }, + { + "container": "/host/proc", + "bind": "/proc", + "readonly": true + } + ] + }, { "type": 1, "title": "Mautic", @@ -824,5 +856,23 @@ "label": "SPM monitoring token" } ] + }, + { + "title": "Datadog agent", + "type": 2, + "categories": ["Monitoring"], + "description": "Collect events and metrics", + "logo": "https://portainer.io/images/logos/datadog_agent.png", + "platform": "linux", + "repository": { + "url": "https://github.com/portainer/templates", + "stackfile": "stacks/datadog-agent/docker-stack.yml" + }, + "env": [ + { + "name": "API_KEY", + "label": "Datadog API key" + } + ] } ]