From 1b10f3449d889fe85f858c7cc7cccf7d5f910700 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 17 Apr 2022 19:32:10 +0200 Subject: local tracktrain testing --- cyberbox/services/tracktrain.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 cyberbox/services/tracktrain.nix (limited to 'cyberbox/services/tracktrain.nix') 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" ]; + } ]; + } + ]; + }; +} -- cgit v1.2.3