Skip to content

Commit 5abfae0

Browse files
committed
feat(modules/geth): Add influxdb options
1 parent 3eaac74 commit 5abfae0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

modules/geth/args.nix

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,27 @@ with lib; {
116116
default = 6060;
117117
description = mdDoc "Port number of Go Ethereum metrics service.";
118118
};
119+
120+
influxdb = {
121+
enable = mkEnableOption (mdDoc "Enable metrics export/push to an external InfluxDB database");
122+
endpoint = mkOption {
123+
type = types.str;
124+
default = "http://127.0.0.1:8086";
125+
description = mdDoc "InfluxDB API endpoint to report metrics to.";
126+
};
127+
128+
username = mkOption {
129+
type = types.str;
130+
default = "geth";
131+
description = mdDoc "Username to authorize access to the database.";
132+
};
133+
134+
password = mkOption {
135+
type = types.str;
136+
default = "test";
137+
description = mdDoc "Password to authorize access to the database.";
138+
};
139+
};
119140
};
120141

121142
network = mkOption {

0 commit comments

Comments
 (0)