Giter Club home page Giter Club logo

influxdb's Introduction

InfluxDB

An Ansible role to install, configure, and manage InfluxDB (a time-series database).

Requirements

Prior knowledge/experience with InfluxDB is highly recommended. Full documentation is available here.

Installation

Either clone this repository, or install through Ansible Galaxy directly using the command:

ansible-galaxy install rossmcdonald.influxdb

Role Variables

The high-level variables are stored in the defaults/main.yml file. The most important one being:

# Channel of InfluxDB to install (stable, unstable, nightly)
influxdb_install_version: stable

More advanced configuration options are also stored in the defaults/main.yml file, which includes all of the necessary bells and whistles to tweak your configuration. There are more advanced runtime options available in the vars/main.yml file as well.

Dependencies

No other Ansible dependencies are required. This role was tested and developed with Ansible 1.9.4.

Testing

To test the role locally, it is recommended to either use Vagrant or Docker. There are a variety of available Dockerfiles in the /docker directory. For more information on building the images, please review the docker/build.sh script.

To run a playbook within one of the Docker images, simply run:

docker run -v $(pwd):/root <DOCKER IMAGE> <PLAYBOOK>

For example, to run the included test.yml using the included CentOS 7 Docker image, run (after building the image):

docker run -v $(pwd):/root ansible.influxdb.centos7 test.yml

Example Playbook

An example playbook is included in the test.yml file. There is also a Vagrantfile, which can be used for quick local testing leveraging Vagrant, and a few Docker Dockerfiles located in the /docker directory.

Contributions and Feedback

Any contributions are welcome. For any bugs or feature requests, please open an issue through Github.

License

MIT

Author

Created by Ross McDonald.

influxdb's People

Contributors

airmonitor avatar aisch avatar b3n4kh avatar davidmpaz avatar jsmartin avatar nardusg avatar raelga avatar rossmcdonald avatar sun-iot avatar svilenivanovsmule avatar t04glovern avatar tima avatar v4lli avatar waquidvp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

influxdb's Issues

influxdb_graphite_templates is not defined

influxdb_graphite_templates variable is not defined in defaults or vars directory. When writing the influx template file ansible returns an error regarding the undefined variable.

To fix the issue add the following line to defaults/main.yml:
influxdb_graphite_templates: "false"

Cannot install without Python2

Hi there,

My distro (Debian 11.3) no longer ships Python2 packages, so installing python-httplib2 as a dependency doesn't work. There is an equivalent package, python3-httplib2 (and similar ones for other versions).

I'll work on a PR.

influxdb_purge_peer_data

In cluster mode, why do you use "influxdb_purge_peer_data: yes" ?

If I play the ansible script several times, all the data are deleted. If I set "influxdb_purge_peer_data: yes", cluster is in wrong state.

Can you help / explain me ?

udp config error

###
###[[udp]]
###
### Controls the listener for InfluxDB line protocol data via UDP.
###

  # TODO: Including the udp table prevents service from starting (even if disabled)
  # [[udp]]
  # enabled = {{ influxdb_udp_enabled }}
  # bind-address = "{{ influxdb_udp_bind_address }}"
  # database = "{{ influxdb_udp_database }}"
  # batch-size = {{ influxdb_udp_batch_size }}
  # batch-timeout = "{{ influxdb_udp_batch_timeout }}"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.