This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
forked from Lupul/influxdb-grafana-rp-proxy
-
Notifications
You must be signed in to change notification settings - Fork 3
/
default.yml
64 lines (61 loc) · 2.16 KB
/
default.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
# Produce debugging output during run.
debug: true
# The mitmdump program handles most backend requests to InfluxDB but
# our proxy code needs to make requests directly so it can cache the
# set of retention polices for each database.
#
# FIXME This same information is held by mitmdump somewhere, since we
# pass it on the command-line, but I don't know how to access it from
# within the proxy script...
influxdb_url: "http://localhost:8086"
# Per-database configurations configuration logic for query
# re-writing.
#
# The top-level entry is a map from InfluxDB database names to
# corresponding proxy handling logic. If no database is specified in
# a query, the '_default_' handling will be used.
#
# The proxy handling logic for each database name is an array of maps
# specifying conditions to select particular retention policies within
# that database. Each map should contain the following keys:
#
# * name -- the name of the retention policy to use.
#
# * interval -- the smallest GROUP BY interval (in seconds) for
# which this retention policy should be selected.
#
# * retention -- the retention period (in seconds) for this
# retention policy.
#
# If the 'GROUP BY $interval' requested is larger than the 'interval'
# and the query's lookback period is within the 'retention' period,
# the corresponding InfluxDB retention policy 'name' will be used.
#
# To ensure the best retention policy is selected, order the list by
# 'interval', as in the second example below.
#
# To specify an infinite retention period (INF in InfluxDB), use the
# string 'inf', as below.
retention_policies:
# Example below should remain as the default.
_default_:
- name: "default"
interval: 0
retention: "inf"
# Example below is more complete and serves as a good default for
# Grafana.
#
operations:
- name: "for_1d_raw"
interval: 0
retention: 3600
- name: "for_7d_at_1m"
interval: 60
retention: 604800 # 7d
- name: "for_90d_at_10m"
interval: 600
retention: 7776000 # 90d
- name: "forever_at_1h"
interval: 3600
retention: 'inf'