Add prometheus #118
2 changed files with 2 additions and 8 deletions
|
@ -66,9 +66,9 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
datasources.settings.datasources = [
|
datasources.settings.datasources = [
|
||||||
{
|
{
|
||||||
name = cfg.datasource.name;
|
name = "Prometheus";
|
||||||
type = "prometheus";
|
type = "prometheus";
|
||||||
url = cfg.datasource.url;
|
url = "http://localhost:${toString config.services.skynet.prometheus.server.port}";
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
editable = true;
|
editable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,11 +97,5 @@ in {
|
||||||
ip = ip_pub;
|
ip = ip_pub;
|
||||||
name = name;
|
name = name;
|
||||||
};
|
};
|
||||||
|
|
||||||
# maybe just do provision config directly ?
|
|
||||||
datasource = {
|
|
||||||
name = "Prometheus";
|
|
||||||
url = "http://localhost:${toString config.services.skynet.prometheus.server.port}";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue