WIP: Got Grafana Working
This commit is contained in:
@@ -8,6 +8,26 @@ in
|
||||
services = {
|
||||
grafana = {
|
||||
enable = true;
|
||||
provision = {
|
||||
enable = true;
|
||||
datasources.settings = {
|
||||
apiVersion = 1;
|
||||
datasources = [
|
||||
{
|
||||
name = "Prometheus";
|
||||
type = "prometheus";
|
||||
url = "http://127.0.0.1:${toString config.services.prometheus.port}";
|
||||
isDefault = true;
|
||||
}
|
||||
{
|
||||
name = "Loki";
|
||||
type = "loki";
|
||||
url = "http://127.0.0.1:${toString config.services.loki.configuration.server.http_listen_port}";
|
||||
isDefault = false;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
server = {
|
||||
domain = serverIP; # "grafana.cyperpunk.de";
|
||||
@@ -113,4 +133,8 @@ in
|
||||
9001
|
||||
3100
|
||||
];
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/loki 0700 loki loki -"
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user