From 9431847a2524bdb54d921d04c313c967b7be7102 Mon Sep 17 00:00:00 2001 From: ThetaSinner Date: Tue, 5 Mar 2024 23:19:12 +0000 Subject: [PATCH] Configure influx server --- .gitignore | 2 ++ flake.nix | 11 ++++++++++- influx/config.yaml | 6 ++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 influx/config.yaml diff --git a/.gitignore b/.gitignore index f66f9b1e..5a4c6289 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ Cargo.lock dnas/**/*.dna happs/**/*.happ + +/influx/.influxdbv2 diff --git a/flake.nix b/flake.nix index fee34c6d..d56f870b 100644 --- a/flake.nix +++ b/flake.nix @@ -23,7 +23,16 @@ inputsFrom = [ inputs.holochain.devShells.${system}.holonix ]; - packages = []; + packages = [ + pkgs.influxdb2-cli + pkgs.influxdb2-server + ]; + + shellHook = '' + export INFLUXD_BOLT_PATH=`pwd`/influx/.influxdbv2/influxd.bolt + export INFLUXD_ENGINE_PATH=`pwd`/influx/.influxdbv2/engine + export INFLUXD_CONFIG_PATH=`pwd`/influx + ''; }; }; }; diff --git a/influx/config.yaml b/influx/config.yaml new file mode 100644 index 00000000..455547b8 --- /dev/null +++ b/influx/config.yaml @@ -0,0 +1,6 @@ +# All options here https://docs.influxdata.com/influxdb/v2/reference/config-options/ + +e2e-testing: true # Allows clearing stores between tests. +http-bind-address: ":8087" +reporting-disabled: true # Don't send telemetry back to Influx +storage-validate-keys: true