summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2022-04-17 19:32:10 +0200
committerstuebinm2022-06-15 11:40:03 +0200
commit1b10f3449d889fe85f858c7cc7cccf7d5f910700 (patch)
treedba591bdf0982d7f67085684b435b1b452ef7720
parent9b6526ca9783c82fc52a0bc3421fbe817a6d99ca (diff)
local tracktrain testing
-rw-r--r--cyberbox/services/tracktrain.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/cyberbox/services/tracktrain.nix b/cyberbox/services/tracktrain.nix
new file mode 100644
index 0000000..65ece9f
--- /dev/null
+++ b/cyberbox/services/tracktrain.nix
@@ -0,0 +1,22 @@
+{ config, lib, pkgs, ... }:
+
+{
+ services.grafana = {
+ enable = true;
+ domain = "localhost";
+ port = 4000;
+ };
+
+ services.prometheus = {
+ enable = true;
+ port = 9001;
+ scrapeConfigs = [
+ {
+ job_name = "tracktrain";
+ static_configs = [ {
+ targets = [ "127.0.0.1:8080" ];
+ } ];
+ }
+ ];
+ };
+}