aboutsummaryrefslogtreecommitdiff
path: root/hosts/common/server/grafana.nix
blob: 7af52561166e3fcab9cbd757c5416e293faaf0f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, lib, pkgs, ... }:

{
  services.grafana = {
    enable = true;
    # Bind to all interfaces.
    addr = "";
    security.adminUser = "fcuny";

    services.grafana.provision.datasources = [{
      name = "prometheus";
      isDefault = true;
      type = "prometheus";
      url = "http://localhost:9090";
    }];
  };
}