Chronograf is InfluxData's open source web application. Use Chronograf with the other components of the TICK stack for infrastructure monitoring, alert management, data visualization, and database management.
%%LOGO%%
Chronograf runs on port 8888. It can be run and accessed by exposing that port:
$ docker run -p 8888:8888 %%IMAGE%%
The Chronograf image exposes a shared volume under /var/lib/chronograf
, so you can mount a host directory to that point to access persisted container data. A typical invocation of the container might be:
$ docker run -p 8888:8888 \
-v $PWD:/var/lib/chronograf \
%%IMAGE%%
Modify $PWD
to the directory where you want to store data associated with the InfluxDB container.
You can also have Docker control the volume mountpoint by using a named volume.
$ docker run -p 8888:8888 \
-v chronograf:/var/lib/chronograf \
%%IMAGE%%
The instructions here are very similar to the instructions when using telegraf
with influxdb
. These examples assume you are using Docker's built-in service discovery capability. In order to do so, we'll first create a new network:
$ docker network create influxdb
Next, we'll start our InfluxDB container named influxdb
:
$ docker run -d --name=influxdb \
--net=influxdb \
influxdb
We can now start a Chronograf container that references this database.
$ docker run -p 8888:8888 \
--net=influxdb \
%%IMAGE%% --influxdb-url=http://influxdb:8086
Try combining this with Telegraf to get dashboards for your infrastructure within minutes!
Starting in v1.10.5, Chronograf no longer run as the root user by default. If a user wants to revert this change they can set CHRONOGRAF_AS_ROOT=true
as an environment variable.
See the official docs for information on creating visualizations.