summaryrefslogtreecommitdiff
path: root/cyberbox
diff options
context:
space:
mode:
Diffstat (limited to 'cyberbox')
-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" ];
+ } ];
+ }
+ ];
+ };
+}