Skip to content

Commit

Permalink
add Nomad by Hashicorp exmple
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Thies authored and Stefan Thies committed Feb 15, 2016
1 parent d0a0abc commit 5db4dca
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ See: [Setup Sematext Docker Agent on CoreOS](https://github.com/sematext/sematex

# Installation on Kubernetes

Run Sematext Docker Agent as DaemonSet.
Run Sematext Docker Agent as [Kubernetes DaemonSet](http://kubernetes.io/v1.1/docs/admin/daemons.html).

1. Create [sematext-agent.yml](kubernetes/sematext-agent.yml) - and set your SPM and Logsene Token in the section spec.env.
2. Run the DaemonSet
Expand All @@ -145,6 +145,14 @@ Run Sematext Docker Agent as DaemonSet.
kubectl create -f sematext-agent.yml
```

# Installation on Docker Swarm

Please read [Docker Swarm: Collecting Metrics, Events & Logs](http://blog.sematext.com/2016/01/12/docker-swarm-collecting-metrics-events-logs/)

# Installation on Nomad by Hashicorp

See and example of the [job description](hashicorp-nomad/sematext-docker-agent.nomad) for [Nomad by Hashicorp](https://www.nomadproject.io/)

# Support

1. Please check the [SPM for Docker Wiki](https://sematext.atlassian.net/wiki/display/PUBSPM/SPM+for+Docker)
Expand Down
25 changes: 25 additions & 0 deletions hashicorp-nomad/sematext-docker-agent.nomad
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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"
}
}
}

0 comments on commit 5db4dca

Please sign in to comment.