22 lines
510 B
Nix
22 lines
510 B
Nix
{ ... }: {
|
|
services = {
|
|
grafana = {
|
|
enable = true;
|
|
auth.anonymous.enable = true;
|
|
extraOptions = { AUTH_BASIC_ENABLED = "false"; };
|
|
provision = {
|
|
enable = true;
|
|
datasources = [{
|
|
access = "proxy";
|
|
name = "prometheus";
|
|
type = "prometheus";
|
|
url = "http://localhost:9090";
|
|
}];
|
|
dashboards = [{
|
|
name = "Static dashboards";
|
|
options.path = ./grafana-dashboards;
|
|
}];
|
|
};
|
|
};
|
|
};
|
|
}
|