X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Finfluxdb.git;a=blobdiff_plain;f=README.rst;h=3027252d59513ce89088db29eae93d7f4114786c;hp=48a494f257be783b6525c03abe358214075c9354;hb=6ae62419c8cb2ec02394b844d990e208fcaefa29;hpb=a6c27313038d7ac44e4d9a717d12ec57040ef8dc diff --git a/README.rst b/README.rst index 48a494f..3027252 100644 --- a/README.rst +++ b/README.rst @@ -40,6 +40,20 @@ Single-node influxdb, SSL for http frontend: key_file: /etc/influxdb/ssl/key.pem cert_file: /etc/influxdb/ssl/cert.pem +Single-node influxdb where you specify paths for data and metastore directories. You +need to ensure that directories exist: + +.. code-block:: yaml + + influxdb: + server: + enabled: true + data: + dir: '/opt/influxdb/data' + wal_dir: '/opt/influxdb/wal' + meta: + dir: '/opt/influxdb/meta' + Single-node influxdb with an admin user: .. code-block:: yaml @@ -94,6 +108,30 @@ Single-node influxdb with new databases: enabled: true name: mydb2 +Manage the retention policies for a database: + +.. code-block:: yaml + + influxdb: + server: + database: + mydb1: + enabled: true + name: mydb1 + retention_policy: + - name: rp_db1 + duration: 30d + replication: 1 + is_default: true + +Where default values are: + +* name = autogen +* duration = INF +* replication = 1 +* is_default: false + + Here is how to manage grants on database: .. code-block:: yaml