mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 14:15:36 +00:00
define grafana settings explicitly
This commit is contained in:
parent
066ea8e440
commit
2c4f215b6e
@ -8,8 +8,11 @@
|
|||||||
|
|
||||||
config = lib.mkIf config.services.grafana.enable {
|
config = lib.mkIf config.services.grafana.enable {
|
||||||
|
|
||||||
# Required to fix error in latest nixpkgs
|
services.grafana.settings = {
|
||||||
services.grafana.settings = { };
|
http_addr = "127.0.0.1";
|
||||||
|
http_port = 3000;
|
||||||
|
domain = config.metricsServer;
|
||||||
|
};
|
||||||
|
|
||||||
caddy.routes = [{
|
caddy.routes = [{
|
||||||
match = [{ host = [ config.metricsServer ]; }];
|
match = [{ host = [ config.metricsServer ]; }];
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
}];
|
}];
|
||||||
webExternalUrl = lib.mkIf config.services.grafana.enable
|
webExternalUrl = lib.mkIf config.services.grafana.enable
|
||||||
"https://${config.prometheusServer}";
|
"https://${config.prometheusServer}";
|
||||||
|
# Web config file: https://prometheus.io/docs/prometheus/latest/configuration/https/
|
||||||
webConfigFile =
|
webConfigFile =
|
||||||
lib.mkIf config.services.grafana.enable (pkgs.formats.yaml { }).generate
|
lib.mkIf config.services.grafana.enable (pkgs.formats.yaml { }).generate
|
||||||
"webconfig.yml" {
|
"webconfig.yml" {
|
||||||
|
Loading…
Reference in New Issue
Block a user