Simon Pasquier | f616965 | 2017-07-17 14:04:19 +0200 | [diff] [blame] | 1 | influxdb: |
| 2 | client: |
| 3 | enabled: true |
Petr Michalec | 81e6bc5 | 2018-01-09 16:48:03 +0100 | [diff] [blame] | 4 | retry: |
| 5 | count: 3 |
| 6 | delay: 3 |
Simon Pasquier | f616965 | 2017-07-17 14:04:19 +0200 | [diff] [blame] | 7 | server: |
| 8 | protocol: http |
| 9 | host: 127.0.0.1 |
| 10 | port: 8086 |
| 11 | user: admin |
| 12 | password: foobar |
| 13 | user: |
| 14 | user1: |
| 15 | enabled: true |
| 16 | admin: true |
| 17 | name: username1 |
| 18 | password: secret |
| 19 | database: |
| 20 | mydb1: |
| 21 | enabled: true |
| 22 | name: mydb1 |
| 23 | retention_policy: |
| 24 | - name: rp_db1 |
| 25 | duration: 30d |
| 26 | replication: 1 |
| 27 | is_default: true |
| 28 | - name: rp_db2 |
| 29 | duration: 365d |
| 30 | replication: 1 |
Petr Michalec | a20e499 | 2017-12-06 13:32:13 +0100 | [diff] [blame] | 31 | continuous_query: |
| 32 | cq_avg_passenger: >- |
| 33 | SELECT mean("passengers") INTO "transportation"."rp_db1"."average_passengers" FROM "_data" GROUP BY time(1h) |
| 34 | cq_basic_br: -> |
| 35 | SELECT mean(*) INTO "downsampled_transportation"."autogen".:MEASUREMENT FROM /.*/ GROUP BY time(30m),* |
Petr Michalec | 5fc2058 | 2017-12-11 15:00:38 +0100 | [diff] [blame] | 36 | query: |
| 37 | insert_h2o_dummy: >- |
| 38 | INSERT cpu,host=dummyA value=10 |
| 39 | delete_h2o_dummy: |
| 40 | query: DELETE FROM "h2o_quality" |
| 41 | user: admin |
| 42 | password: foobar |
Simon Pasquier | f616965 | 2017-07-17 14:04:19 +0200 | [diff] [blame] | 43 | mydb2: |
| 44 | enabled: true |
| 45 | name: mydb2 |
| 46 | grant: |
| 47 | username1_mydb1: |
| 48 | enabled: true |
| 49 | user: username1 |
| 50 | database: mydb1 |
| 51 | privilege: all |
| 52 | username1_mydb2: |
| 53 | enabled: true |
| 54 | user: username1 |
| 55 | database: mydb2 |
| 56 | privilege: read |