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

View File

@ -1,8 +1,17 @@
sematext-agent: sematext-agent:
image: 'sematext/sematext-agent-docker:latest' image: 'sematext/sematext-agent-docker:${image_version}'
environment: environment:
- LOGSENE_TOKEN=${logsene_token} - LOGSENE_TOKEN=${logsene_token}
- SPM_TOKEN=${spm_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 restart: always
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock

View File

@ -4,6 +4,12 @@
description: "Sematext Docker Agent" description: "Sematext Docker Agent"
minimum_rancher_version: v0.46.0 minimum_rancher_version: v0.46.0
questions: questions:
- variable: "image_version"
label: "Image version tag"
description: "default 'latest'"
default: "latest"
required: true
type: "string"
- variable: "spm_token" - variable: "spm_token"
label: "SPM Token" label: "SPM Token"
description: "Your SPM Application Token" description: "Your SPM Application Token"
@ -14,3 +20,59 @@
description: "Your Logsene Application Token" description: "Your Logsene Application Token"
required: true required: true
type: "string" 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

View File

@ -1,11 +1,24 @@
# Sematext Docker Agent [Sematext Docker Agent](https://github.com/sematext/sematext-agent-docker) collects Metrics, Events and Logs from the Docker API for [SPM Docker Monitoring](http://sematext.com/spm/integrations/docker-monitoring.html) & [Logsene](http://sematext.com/logsene) Log Management.
[Sematext Docker Agent](https://github.com/sematext/sematext-agent-docker) collects Metrics, Events and Logs from the Docker API for [SPM Docker Monitoring](http://sematext.com/spm/integrations/docker-monitoring.html) & [Logsene / Hosted ELK](http://sematext.com/logsene) Log Management.
* Sematext Docker Agent will be deployed globally by default so that every host is monitored This template deploys Sematext Docker Agent globally to monitor all containers on every RancherOS cluster node.
# Quickstart - get up and running in 5 minutes ## Highlights
- Autodiscovery of containers
- Detailed host and [container metrics](https://sematext.com/blog/2016/06/28/top-docker-metrics-to-watch/)
- Tracking of Docker events
- Tagging of logs with Swarm and Kubernetes metadata
- Log format detection and parsing
## Quickstart
1. Get a free account [apps.sematext.com](https://apps.sematext.com/users-web/register.do) 1. Get a free account [apps.sematext.com](https://apps.sematext.com/users-web/register.do)
2. [Create an SPM App of type “Docker”](https://apps.sematext.com/spm-reports/registerApplication.do) to obtain the SPM Application Token 2. [Create an SPM App of type “Docker”](https://apps.sematext.com/spm-reports/registerApplication.do) to obtain the SPM Application Token
3. Create a [Logsene](http://www.sematext.com/logsene/) App to obtain the Logsene Token 3. Create a [Logsene](http://www.sematext.com/logsene/) App to obtain the Logsene Token
4. Customize [Sematext Docker Agent settings](https://github.com/sematext/sematext-agent-docker#configuration-parameters) in the template below
## Support
1. Please check the [SPM for Docker Wiki](https://sematext.atlassian.net/wiki/display/PUBSPM/SPM+for+Docker)
2. If you have questions about SPM for Docker, chat with us in the [SPM user interface](https://apps.sematext.com/users-web/login.do) or drop an e-mail to support@sematext.com
3. Open an issue [here](https://github.com/sematext/sematext-agent-docker/issues)
4. Contribution guide [here](https://github.com/sematext/sematext-agent-docker/blob/master/contribute.md)

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1,6 +1,6 @@
name: Sematext Docker Agent name: Sematext Docker Agent
description: | description: |
Sematext Docker Agent - Performance Monitoring. Collection of Metrics, Events and Logs. Performance Monitoring and Log Management. Collection of Metrics, Events and Logs.
version: 1.29.44 version: 1.29.44
category: Monitoring category: Monitoring
maintainer: "Stefan Thies <stefan.thies@sematext.com>" maintainer: "Stefan Thies <stefan.thies@sematext.com>"