snowflake/hosts/sakura/services/grafana.nix

63 lines
1.5 KiB
Nix
Raw Normal View History

2023-06-11 02:08:06 -04:00
_: {
services.grafana = {
enable = true;
settings = {
server = {
2023-10-03 14:24:26 -04:00
root_url = "https://metrics.flake.sh";
domain = "metrics.flake.sh";
enforce_domain = true;
http_addr = "0.0.0.0";
http_port = 3100;
};
2023-06-19 12:20:49 -04:00
"auth.anonymous".enabled = true;
"auth.basic".enabled = false;
users = {
allow_signup = false;
2023-06-19 09:23:56 -04:00
};
2023-06-19 08:19:00 -04:00
database = {
type = "postgres";
host = "192.168.1.211:5432";
name = "grafana";
user = "grafana";
ssl_mode = "disable";
};
};
provision = {
datasources.settings = {
datasources = [
{
name = "Prometheus";
type = "prometheus";
2023-06-19 09:23:56 -04:00
url = "http://localhost:9090";
orgId = 1;
}
{
name = "Prometheus-kariru";
type = "prometheus";
url = "http://192.168.1.54:9090";
orgId = 1;
}
{
name = "Prometheus-yuki";
type = "prometheus";
url = "http://192.168.1.36:9090";
orgId = 1;
}
{
name = "Prometheus-arashi";
type = "prometheus";
url = "http://192.168.1.211:9090";
orgId = 1;
}
2023-06-24 18:09:21 -04:00
{
name = "Prometheus-sora";
type = "prometheus";
url = "http://100.104.42.96:9090";
2023-06-24 18:09:21 -04:00
orgId = 1;
}
];
};
};
};
}