Last active
May 21, 2017 14:28
-
-
Save megastef/ff7b4dcac1e34d56b947 to your computer and use it in GitHub Desktop.
Monitoring and Logging for all Docker containers on Nomad by HashiCorp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run Job Definition: nomad run sematext-agent-docker.nomad | |
# https://www.hashicorp.com/blog/nomad.html | |
# More Info: https://hub.docker.com/r/sematext/sematext-agent-docker/ | |
# http://blog.sematext.com/2015/12/15/docker-logging-partner-sematext-logsene/ | |
job "sematext-agent-docker" { | |
# set your region here | |
region = "global" | |
# Mandatory, parameter pls. change! | |
datacenters = ["us-west-1"] | |
# run this job globally | |
type = "system" | |
group "infra" { | |
task "sematext-agent-docker" { | |
driver = "docker" | |
config { | |
image = "sematext/sematext-agent-docker" | |
privileged: true | |
} | |
env { | |
# Create App Tokens here: https://apps.sematext.com | |
SPM_TOKEN="YOUR_SPM_TOKEN" | |
LOGSENE_TOKEN="YOUR_LOGSENE_TOKEN" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment