chore(grfn/system): Update grafana configuration for mugwump
Lots of deprecations were made in the new nixos version for the grafana config - this updates all of those settings in mugwump's system config Change-Id: I69cdc9d2d59702c38d6334a4d27a04bef4e8c132 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7190 Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
bf18e65719
commit
7945190abb
1 changed files with 12 additions and 5 deletions
|
@ -13,6 +13,8 @@ with lib;
|
|||
|
||||
networking.hostName = "mugwump";
|
||||
|
||||
system.stateVersion = "22.05";
|
||||
|
||||
boot = {
|
||||
loader.systemd-boot.enable = true;
|
||||
|
||||
|
@ -106,15 +108,20 @@ with lib;
|
|||
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
port = 3000;
|
||||
domain = "metrics.gws.fyi";
|
||||
rootUrl = "https://metrics.gws.fyi";
|
||||
dataDir = "/var/lib/grafana";
|
||||
analytics.reporting.enable = false;
|
||||
|
||||
settings = {
|
||||
server = {
|
||||
http_port = 3000;
|
||||
root_url = "https://metrics.gws.fyi";
|
||||
domain = "metrics.gws.fyi";
|
||||
};
|
||||
analytics.reporting_enabled = false;
|
||||
};
|
||||
|
||||
provision = {
|
||||
enable = true;
|
||||
datasources = [{
|
||||
datasources.settings.datasources = [{
|
||||
name = "Prometheus";
|
||||
type = "prometheus";
|
||||
url = "http://localhost:9090";
|
||||
|
|
Loading…
Reference in a new issue