Updates for Sematext Docker Agent (#206)

* add more options to sematext docker agent template

* add more options to sematext docker agent template

* add more options to sematext docker agent template

* add log patters field to Sematext agent

* add image version to Sematext Docker Agent

* Update README.md

* update templates, order of parameters

* change size

* change size

* change size

* upper case items

* adjustment headlines

* set name field

* order of fields

* rm name field

* fix question type for HTTP_PROXY

* uppercase descriptions

* change logo
This commit is contained in:
Stefan Thies
2016-07-11 19:40:37 +02:00
committed by Bill Maxwell
parent 29d9f93256
commit ae75151efa
5 changed files with 203 additions and 164 deletions
+10 -1
View File
@@ -1,8 +1,17 @@
sematext-agent:
image: 'sematext/sematext-agent-docker:latest'
image: 'sematext/sematext-agent-docker:${image_version}'
environment:
- LOGSENE_TOKEN=${logsene_token}
- SPM_TOKEN=${spm_token}
- GEOIP_ENABLED=${geoip_enabled}
- HTTPS_PROXY=${https_proxy}
- HTTP_PROXY=${http_proxy}
- MATCH_BY_IMAGE=${match_by_image}
- MATCH_BY_NAME=${match_by_name}
- SKIP_BY_IMAGE=${match_by_image}
- SKIP_BY_NAME=${match_by_name}
- LOGAGENT_PATTERNS=${logagent_patterns}
- KUBERNETES=${kubernetes}
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
+62
View File
@@ -4,6 +4,12 @@
description: "Sematext Docker Agent"
minimum_rancher_version: v0.46.0
questions:
- variable: "image_version"
label: "Image version tag"
description: "default 'latest'"
default: "latest"
required: true
type: "string"
- variable: "spm_token"
label: "SPM Token"
description: "Your SPM Application Token"
@@ -14,3 +20,59 @@
description: "Your Logsene Application Token"
required: true
type: "string"
- variable: "geoip_enabled"
label: "Enable Geo IP"
description: "Enable Geo IP lookups and updaes for maxmind geoip-lite database"
required: false
default: "false"
type: "enum"
options:
- "false"
- "true"
- variable: "match_by_name"
label: "Collect logs only from containers matching the container name."
description: "Regular expression, e.g. nginx|mongo"
required: false
type: "string"
- variable: "match_by_image"
label: "Collect logs only from containers matching the image name"
description: "Regular expression, e.g. nginx|mongo"
required: false
type: "string"
- variable: "skip_by_name"
label: "Exclude logs from containers matching the container name"
description: "Regular expression, e.g. nginx|mongo"
required: false
type: "string"
- variable: "skip_by_image"
label: "Exclude logs from containers matching the image name"
description: "Regular expression, e.g. nginx|mongo"
required: false
type: "string"
- variable: "http_proxy"
label: "HTTP Proxy"
description: "Proxy url, when the agent runs behind a firewall e.g. http://myproxy:9090"
required: false
type: "string"
- variable: "https_proxy"
label: "HTTPS Proxy"
description: "Secure Proxy url, when the agent runs behind a firewall e.g. https://myproxy:9090"
required: false
type: "string"
- variable: "kubernetes"
label: "Tag logs with Kuberntes metadata"
description: "Enable/disable tagging of logs with namespace, pod, UID, container name, ..."
required: false
default: "0"
type: "enum"
options:
- 0
- 1
- variable: "logagent_patterns"
label: "Custom pattern definitions for log parsing."
type: "multiline"
required: false