mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(monitoring): grafana
This commit is contained in:
parent
0397043f88
commit
276ccc077e
3 changed files with 18 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ in {
|
|||
settings.server = {
|
||||
domain = mkDefault config.networking.domain;
|
||||
http_port = mkDefault 9092;
|
||||
http_addr = mkDefault "::";
|
||||
http_addr = mkDefault "[::]";
|
||||
root_url = mkDefault "https://${service.id}.${cfg.settings.server.domain}";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -127,6 +127,8 @@ in
|
|||
ports.default = mapAlmostOptionDefaults {
|
||||
port = 9092;
|
||||
protocol = "http";
|
||||
} // {
|
||||
prometheus.exporter.enable = true;
|
||||
};
|
||||
};
|
||||
loki = {config, ...}: {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,21 @@
|
|||
inherit (config.services) grafana loki prometheus;
|
||||
in {
|
||||
services = {
|
||||
grafana.enable = true;
|
||||
grafana = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"auth.anonymous" = {
|
||||
enabled = true;
|
||||
# org_name = domain;
|
||||
# org_role = "Viewer"? "Editor"?
|
||||
org_role = "Admin";
|
||||
};
|
||||
metrics = {
|
||||
enabled = true;
|
||||
disable_total_stats = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
loki.enable = true;
|
||||
prometheus.enable = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue