opentsdb nixos module: Add option for defining OpenTSDB's configuration
This commit is contained in:
parent
c6d77eb0bf
commit
c0a83cbc49
@ -5,10 +5,7 @@ with lib;
|
|||||||
let
|
let
|
||||||
cfg = config.services.opentsdb;
|
cfg = config.services.opentsdb;
|
||||||
|
|
||||||
configFile = pkgs.writeText "opentsdb.conf" ''
|
configFile = pkgs.writeText "opentsdb.conf" cfg.config;
|
||||||
tsd.core.auto_create_metrics = true
|
|
||||||
tsd.http.request.enable_chunked = true
|
|
||||||
'';
|
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
@ -59,6 +56,17 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config = mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = ''
|
||||||
|
tsd.core.auto_create_metrics = true
|
||||||
|
tsd.http.request.enable_chunked = true
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
The contents of OpenTSDB's configuration file
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user