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

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

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