summaryrefslogtreecommitdiff
path: root/cyberbox/services/tracktrain.nix
blob: 65ece9f14f5f9f637ac7ab8c2a66c0b39f27ab14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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" ];
        } ];
      }
    ];
  };
}