- fixes repos that had misspelled or missing url: - couchbase - couchdb - nats - notary - nuxeo - php-zendserver - rakudo-star - solr - tomee |
||
|---|---|---|
| .. | ||
| README-short.txt | ||
| README.md | ||
| content.md | ||
| github-repo | ||
| license.md | ||
| logo.png | ||
| tag-details.md | ||
README.md
Supported tags and respective Dockerfile links
For more information about this image and its history, please see the relevant manifest file (library/influxdb). This image is updated via pull requests to the docker-library/official-images GitHub repo.
For detailed information about the virtual/transfer sizes and individual layers of each of the above supported tags, please see the influxdb/tag-details.md file in the docker-library/docs GitHub repo.
InfluxDB
InfluxDB is a time series database built from the ground up to handle high write and query loads. InfluxDB is meant to be used as a backing store for any use case involving large amounts of timestamped data, including DevOps monitoring, application metrics, IoT sensor data, and real-time analytics.
Using this Image
Running the container
The InfluxDB image exposes a shared volume under /var/lib/influxdb, 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 8083:8083 -p 8086:8086 \
-v $PWD:/var/lib/influxdb \
influxdb
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 8083:8083 -p 8086:8086 \
-v influxdb:/var/lib/influxdb \
influxdb
Exposed Ports
The following ports are important and will be automatically exposed when using docker run -P.
- 8083 Admin interface port
- 8086 HTTP API PORT
Other important ports that aren't exposed by default:
- 8091 Meta service port
- 8088 Clustering (raft) port
These two ports do not need to be exposed in a single server configuration.
Find more about API Endpoints & Ports here.
Configuration
InfluxDB can be either configured from a config file or using environment variables. To mount a configuration file and use it with the server, you can use this command:
Generate the default configuration file:
$ docker run --rm influxdb influxd config > influxdb.conf
Modify the default configuration, which will now be available under $PWD. Then start the InfluxDB container.
$ docker run -p 8083:8083 -p 8086:8086 \
-v $PWD:/etc/influxdb:ro \
influxdb -config /etc/influxdb/influxdb.conf
Modify $PWD to the directory where you want to store the configuration file.
For environment variables, the format is INFLUXDB_$SECTION_$NAME. All dashes (-) are replaced with underscores (_). If the variable isn't in a section, then omit that part.
Examples:
INFLUXDB_REPORTING_DISABLED=true
INFLUXDB_META_DIR=/path/to/metadir
INFLUXDB_DATA_QUERY_LOG_ENABLED=false
Find more about configuring InfluxDB here
Graphite
InfluxDB supports the Graphite line protocol, but the service and ports are not exposed by default. To run InfluxDB with Graphite support enabled, you can either use a configuration file or set the appropriate environment variables.
HTTP API
Creating a DB named mydb:
$ curl -G http://localhost:8086/query --data-urlencode "q=CREATE DATABASE mydb"
Inserting into the DB:
$ curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000'
Read more about this in the official documentation
CLI / SHELL
Start the container:
$ docker run --name=influxdb -d -p 8083:8083 -p 8086:8086 influxdb
Run the influx client in another container:
$ docker run --rm --link=influxdb -it influxdb influx -host influxdb
Alternatively, jump directly into the container:
$ docker exec -it influxdb influx
Web Administrator Interface
Navigate to localhost:8083 with your browser while running the container.
See more about using the web admin here.
License
View license information for the software contained in this image.
Supported Docker versions
This image is officially supported on Docker version 1.11.1.
Support for older versions (down to 1.6) is provided on a best-effort basis.
Please see the Docker installation documentation for details on how to upgrade your Docker daemon.
User Feedback
Documentation
Documentation for this image is stored in the influxdb/ directory of the docker-library/docs GitHub repo. Be sure to familiarize yourself with the repository's README.md file before attempting a pull request.
Issues
If you have any problems with or questions about this image, please contact us through a GitHub issue. If the issue is related to a CVE, please check for a cve-tracker issue on the official-images repository first.
You can also reach many of the official image maintainers via the #docker-library IRC channel on Freenode.
Contributing
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.
