单个 influxdb 版本. 如果多个 telegraf 请替换对应版本 .env-latest
,.env-nightlies
对应的 INFLUXDB_IP
字段,否则只支持单机监控.
# 单机部署
./sandbox up
# 需要监控的机器上面运行(如果需要监控多台)
./sandbox append telegraf
docker-compose 下载
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/ docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
卸载
# 卸载全部
./sandbox down
# 如果其他机器存在 telegraf ,在对应机器执行...
docker-compose -f docker-compose-telegraf.yml down
This repo is a quick way to get the entire TICK Stack spun up and working together. It uses Docker to spin up the full TICK stack in a connected fashion. This is heavily tested on MacOS and should mostly work on Linux and Windows.
To get started you need a running docker installation. If you don't have one, you can download Docker for Mac or Windows, or follow the installation instructions for Docker CE for your Linux distribution.
To run the sandbox
, simply use the convenient cli:
$ ./sandbox
sandbox commands:
up -> spin up the sandbox environment (add -nightly to grab the latest nightly builds of InfluxDB and Chronograf)
down -> tear down the sandbox environment
restart -> restart the sandbox
influxdb -> attach to the influx cli
append (telegraf) -> build telegraf image and up a telegraf container
enter (influxdb||kapacitor||chronograf||telegraf) -> enter the specified container
logs (influxdb||kapacitor||chronograf||telegraf) -> stream logs for the specified container
delete-data -> delete all data created by the TICK Stack
docker-clean -> stop and remove all running docker containers
rebuild-docs -> rebuild the documentation container to see updates
To get started just run ./sandbox up
. You browser will open two tabs:
localhost:8888
- Chronograf's address. You will use this as a management UI for the full stacklocalhost:3010
- Documentation server. This contains a simple markdown server for tutorials and documentation.
NOTE: Make sure to stop any existing installations of
influxdb
,kapacitor
orchronograf
. If you have them running the Sandbox will run into port conflicts and fail to properly start. In this case stop the existing processes and run./sandbox restart
. Also make sure you are not using Docker Toolbox.
Once the Sandbox launches, you should see your dashboard appear in your browser:
You are ready to get started with the TICK Stack!
Click the Host icon in the left navigation bar to see your host (named telegraf-getting-started
) and its overall status.
You can click on system
hyperlink to see a pre-built dashboard visualizing the basic system stats for your
host, then check out the tutorials at http://localhost:3010/tutorials
.
If you are using the nightly builds and want to get started with Flux, make sure you check out the Getting Started with Flux tutorial.
Note: see influx-stress to create data for your Sandbox.