https://github.com/typhoonzero/nginx-collector
nginx collecor in docker
https://github.com/typhoonzero/nginx-collector
Last synced: 4 months ago
JSON representation
nginx collecor in docker
- Host: GitHub
- URL: https://github.com/typhoonzero/nginx-collector
- Owner: typhoonzero
- Created: 2016-11-21T06:37:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-22T03:03:58.000Z (over 9 years ago)
- Last Synced: 2025-09-29T07:23:49.106Z (9 months ago)
- Language: Smarty
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
docker-collectd
===============
use docker to run collectd to get nginx monitor info into influxdb
# Run
```
docker run -e HOSTNAME=aaa ... [your image]
```
# Build
```
docker build -t [yourimage]:[yourtag]
```
# Configuration
config the below environment virables to
* HOSTNAME: hostname for local machine
* INFLUX_HOST: influxdb machine host or IP
* INFLUX_PORT: influxdb port
* INFLUX_USER: you know this
* INFLUX_PASSWD: you know this too
* NGINX_HOST: nginx to monitor
* NGINX_PORT: where nginx serves "nginx_status"