aboutsummaryrefslogblamecommitdiff
path: root/hosts/common/server/grafana.nix
blob: 76c1ecb4d64ee1dad71286f57307bb9f8d533bf4 (plain) (tree)
1
2
3
4
5
6
7
8
9


                           
                      


                             

                                 
                              




                                    

    
{ config, lib, pkgs, ... }:

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

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