mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-19 08:11:26 +02:00
fix(aquamarine): repair monitoring config
Load both *.yml and *.yaml alert rule files: the Loki rules were named .yaml while only *.yml was loaded, so they silently never ran. Fix the Grafana domain typo (writefo.fun -> writefor.fun). Comment out the postgres-playground datasource, which used the Grafana admin password for a role that has no password and could never authenticate.
This commit is contained in:
@@ -88,6 +88,11 @@
|
|||||||
};
|
};
|
||||||
editable = false;
|
editable = false;
|
||||||
}
|
}
|
||||||
|
# Disabled: the `playground` role has no password and remote logins
|
||||||
|
# require scram-sha-256, so this datasource could never authenticate.
|
||||||
|
# Re-enable once a `playground` DB password is provisioned
|
||||||
|
# (docs/system-audit-2026-09-19.md, item 1.5).
|
||||||
|
/*
|
||||||
{
|
{
|
||||||
# https://grafana.com/docs/grafana/latest/datasources/postgres/configure/
|
# https://grafana.com/docs/grafana/latest/datasources/postgres/configure/
|
||||||
name = "postgres-playground";
|
name = "postgres-playground";
|
||||||
@@ -95,7 +100,7 @@
|
|||||||
url = "postgres.writefor.fun:5432";
|
url = "postgres.writefor.fun:5432";
|
||||||
user = "playground";
|
user = "playground";
|
||||||
secureJsonData = {
|
secureJsonData = {
|
||||||
password = "$__file{${config.age.secrets."grafana-admin-password".path}}";
|
password = "$__file{${config.age.secrets."postgres-playground-password".path}}";
|
||||||
};
|
};
|
||||||
jsonData = {
|
jsonData = {
|
||||||
database = "playground";
|
database = "playground";
|
||||||
@@ -113,6 +118,7 @@
|
|||||||
};
|
};
|
||||||
editable = false;
|
editable = false;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
{
|
{
|
||||||
name = "infinity-dataviewer";
|
name = "infinity-dataviewer";
|
||||||
type = "yesoreyeram-infinity-datasource";
|
type = "yesoreyeram-infinity-datasource";
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
http_addr = "127.0.0.1";
|
http_addr = "127.0.0.1";
|
||||||
http_port = 3351;
|
http_port = 3351;
|
||||||
protocol = "http";
|
protocol = "http";
|
||||||
domain = "grafana.writefo.fun";
|
domain = "grafana.writefor.fun";
|
||||||
# Redirect to correct domain if the host header does not match the domain. Prevents DNS rebinding attacks.
|
# Redirect to correct domain if the host header does not match the domain. Prevents DNS rebinding attacks.
|
||||||
serve_from_sub_path = false;
|
serve_from_sub_path = false;
|
||||||
# Add subpath to the root_url if serve_from_sub_path is true
|
# Add subpath to the root_url if serve_from_sub_path is true
|
||||||
|
|||||||
@@ -20,7 +20,9 @@
|
|||||||
# Path to the files with alerting and/or recording rules.
|
# Path to the files with alerting and/or recording rules.
|
||||||
rule = [
|
rule = [
|
||||||
"${./alert_rules}/*.yml"
|
"${./alert_rules}/*.yml"
|
||||||
|
"${./alert_rules}/*.yaml"
|
||||||
"${./recoding_rules}/*.yml"
|
"${./recoding_rules}/*.yml"
|
||||||
|
"${./recoding_rules}/*.yaml"
|
||||||
];
|
];
|
||||||
# https://docs.victoriametrics.com/victoriametrics/vmalert/#link-to-alert-source
|
# https://docs.victoriametrics.com/victoriametrics/vmalert/#link-to-alert-source
|
||||||
# Set this two args to generate the correct `.GeneratorURL`
|
# Set this two args to generate the correct `.GeneratorURL`
|
||||||
|
|||||||
Reference in New Issue
Block a user