diff options
author | Emile <git@emile.space> | 2024-09-19 22:53:08 +0200 |
---|---|---|
committer | Emile <git@emile.space> | 2024-09-19 22:53:08 +0200 |
commit | 67bb9274b9846d2f1f3e55d9fa680aedb698e99e (patch) | |
tree | 24dfbb75fc4562849295951cb825546d9fd5f3ff | |
parent | bb8c69d5a01e95da30ccc66e0a758f7449649841 (diff) |
more provisioning stuff
-rw-r--r-- | nix/hosts/corrino/www/grafana.emile.space.nix | 57 |
1 files changed, 40 insertions, 17 deletions
diff --git a/nix/hosts/corrino/www/grafana.emile.space.nix b/nix/hosts/corrino/www/grafana.emile.space.nix index 5299d3f..22b444f 100644 --- a/nix/hosts/corrino/www/grafana.emile.space.nix +++ b/nix/hosts/corrino/www/grafana.emile.space.nix @@ -89,24 +89,47 @@ }; provision = { - datasources = { - settings = { - datasources = [ - { - url = "http://localhost:${toString config.services.prometheus.port}"; - type = "prometheus"; - name = "Prometheus"; - editable = false; - access = "proxy"; # server = "proxy", browser = "direct" - } - { - name = "loki"; - url = "http://localhost:${toString config.services.loki.configuration.server.http_listen_port}"; - type = "loki"; - } - ]; - }; + dashboards.settings = { }; + datasources.settings = { + datasources = [ + { + url = "http://localhost:${toString config.services.prometheus.port}"; + type = "prometheus"; + name = "Prometheus"; + editable = false; + access = "proxy"; # server = "proxy", browser = "direct" + } + { + name = "loki"; + url = "http://${config.services.loki.configuration.common.instance_addr}:${toString config.services.loki.configuration.server.http_listen_port}"; + type = "loki"; + } + ]; }; + + # TODO(emile): finish setting up the grafana notifier filling out the settings section + # notifiers = [ + # { + # uid = "2ad1c1d1-bcd9-4cb8-8897-c89c5820ffb1"; + # type = "email"; + # settings = {}; + # org_name = "Main Org."; + # org_id = 1; + # name = "email"; + # id_default = true; + # frequency = "5m"; + # disable_resolve_message = false; + # } + # ]; + + # TODO(emile): finish setting up the alerting stuff within here + # alerting = { + # templates.settings = { }; + # rules.settings = {}; + # policies.settings = {}; + # muteTimings.settings = {}; + # contactPoints.settings = {}; + # }; }; }; }; |