grafana: disable signup, add provisioning
This commit is contained in:
parent
524edd90ed
commit
9454d21bbd
1 changed files with 22 additions and 1 deletions
|
@ -44,7 +44,28 @@ in {
|
||||||
check_for_updates = false;
|
check_for_updates = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# users.allow_signup = false;
|
users.allow_signup = false;
|
||||||
|
};
|
||||||
|
provision = {
|
||||||
|
enable = true;
|
||||||
|
datasources.settings = {
|
||||||
|
datasources = [
|
||||||
|
(mkIf config.modules.system.services.database.postgresql.enable {
|
||||||
|
name = "Prometheus";
|
||||||
|
type = "prometheus";
|
||||||
|
access = "proxy";
|
||||||
|
url = "http://127.0.0.1:4024";
|
||||||
|
isDefault = true;
|
||||||
|
})
|
||||||
|
|
||||||
|
(mkIf config.modules.system.services.prometheus.enable {
|
||||||
|
name = "PostgreSQL";
|
||||||
|
type = "postgres";
|
||||||
|
access = "proxy";
|
||||||
|
url = "http://127.0.0.1:${toString config.services.prometheus.port}";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue