Skip to content
Snippets Groups Projects
Commit 8dbb3544 authored by Florian Sesser's avatar Florian Sesser
Browse files

grafana.nix: Formatting/white space/putting things in their right name space

This commit does not change the semantics, only the looks.
parent c0d604af
No related branches found
No related tags found
3 merge requests!141Merge develop into staging,!140Merge staging into production,!123Monitoring: Set admin PW
Pipeline #869 passed
......@@ -81,33 +81,33 @@ in {
# Defend against DNS rebinding attacks.
SERVER_ENFORCE_DOMAIN = "true";
};
};
services.grafana.auth = {
anonymous.org_role = "Admin";
anonymous.org_name = "Main Org.";
} // grafanaAuth;
auth = {
anonymous.org_role = "Admin";
anonymous.org_name = "Main Org.";
} // grafanaAuth;
services.grafana.provision = {
enable = true;
# See https://grafana.com/docs/grafana/latest/administration/provisioning/#datasources
datasources = [{
name = "Prometheus";
type = "prometheus";
access = "proxy";
url = cfg.prometheusUrl;
isDefault = true;
} {
name = "Loki";
type = "loki";
access = "proxy";
url = cfg.lokiUrl;
}];
# See https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards
dashboards = [{
name = "provisioned";
options.path = ./grafana-config;
}];
provision = {
enable = true;
# See https://grafana.com/docs/grafana/latest/administration/provisioning/#datasources
datasources = [{
name = "Prometheus";
type = "prometheus";
access = "proxy";
url = cfg.prometheusUrl;
isDefault = true;
} {
name = "Loki";
type = "loki";
access = "proxy";
url = cfg.lokiUrl;
}];
# See https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards
dashboards = [{
name = "provisioned";
options.path = ./grafana-config;
}];
};
};
# nginx reverse proxy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment