nixos/graphiteApi: add example config for influxdb backend
This commit is contained in:
parent
1770272775
commit
9bd66b24d9
@ -117,6 +117,20 @@ in {
|
|||||||
directories:
|
directories:
|
||||||
- ${dataDir}/whisper
|
- ${dataDir}/whisper
|
||||||
'';
|
'';
|
||||||
|
example = literalExample ''
|
||||||
|
allowed_origins:
|
||||||
|
- dashboard.example.com
|
||||||
|
cheat_times: true
|
||||||
|
influxdb:
|
||||||
|
host: localhost
|
||||||
|
port: 8086
|
||||||
|
user: influxdb
|
||||||
|
pass: influxdb
|
||||||
|
db: metrics
|
||||||
|
cache:
|
||||||
|
CACHE_TYPE: 'filesystem'
|
||||||
|
CACHE_DIR: '/tmp/graphite-api-cache'
|
||||||
|
'';
|
||||||
type = types.str;
|
type = types.str;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user