configuration
flake
hosts
_iso
aluminium
astatine
backup-4
beryllium
carbon
clerie-backup
dn42-il-gw1
dn42-il-gw5
dn42-il-gw6
dn42-ildix-clerie
dn42-ildix-service
gatekeeper
hydra-1
hydra-2
krypton
mail-2
monitoring-3
dashboards
alertmanager.nix
berlinerbaeder-exporter.nix
blackbox.nix
configuration.nix
grafana.nix
hardware-configuration.nix
nixos-validator.nix
prometheus.nix
rules.yml
secrets.json
ssh.pub
uptimestatus.nix
nonat
osmium
palladium
porter
storage-2
tungsten
web-2
zinc
lib
modules
pkgs
profiles
users
.gitignore
README.md
flake.lock
flake.nix
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{ ... }:
|
|
{
|
|
services.grafana = {
|
|
enable = true;
|
|
settings = {
|
|
server = {
|
|
domain = "grafana.monitoring.clerie.de";
|
|
root_url = "https://grafana.monitoring.clerie.de";
|
|
http_port = 3001;
|
|
http_addr = "::1";
|
|
};
|
|
"auth.anonymous" = {
|
|
enabled = true;
|
|
};
|
|
};
|
|
|
|
provision = {
|
|
enable = true;
|
|
datasources.settings.datasources = [
|
|
{
|
|
type = "prometheus";
|
|
name = "Prometheus";
|
|
url = "http://[::1]:9090";
|
|
isDefault = true;
|
|
}
|
|
];
|
|
dashboards.settings.providers = [
|
|
{
|
|
options.path = ./dashboards;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
services.nginx = {
|
|
virtualHosts = {
|
|
"grafana.monitoring.clerie.de" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/".proxyPass = "http://[::1]:3001/";
|
|
locations."= /api/live/ws" = {
|
|
proxyPass = "http://[::1]:3001";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|