Compare commits
No commits in common. "936d8f9090afb7934564c642aa9e7f8af495433a" and "290f541c5f555c0203535c7be0771b70e803da0f" have entirely different histories.
936d8f9090
...
290f541c5f
3 changed files with 5 additions and 6 deletions
|
@ -36,7 +36,6 @@
|
|||
services = {
|
||||
forgejo.enable = true;
|
||||
grafana.enable = true;
|
||||
prometheus.enable = true;
|
||||
};
|
||||
programs = {
|
||||
editors = {
|
||||
|
|
|
@ -50,19 +50,19 @@ in {
|
|||
enable = true;
|
||||
datasources.settings = {
|
||||
datasources = [
|
||||
(mkIf config.modules.system.services.prometheus.enable {
|
||||
(mkIf config.modules.system.services.database.postgresql.enable {
|
||||
name = "Prometheus";
|
||||
type = "prometheus";
|
||||
access = "proxy";
|
||||
url = "http://127.0.0.1:${toString config.services.prometheus.port}";
|
||||
url = "http://127.0.0.1:4024";
|
||||
isDefault = true;
|
||||
})
|
||||
|
||||
(mkIf config.modules.system.services.database.postgresql.enable {
|
||||
(mkIf config.modules.system.services.prometheus.enable {
|
||||
name = "PostgreSQL";
|
||||
type = "postgres";
|
||||
access = "proxy";
|
||||
url = "http://127.0.0.1:${toString config.services.prometheus.exporters.postgres.port}";
|
||||
url = "http://127.0.0.1:${toString config.services.prometheus.port}";
|
||||
})
|
||||
];
|
||||
};
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
cfg = config.modules.system.services.prometheus;
|
||||
cfg = config.modules.system.services.grafana;
|
||||
port = 4022;
|
||||
in {
|
||||
options.modules.system.services.prometheus.enable = mkEnableOption "Grafana, a graphing service";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue