grafana: add haru

This commit is contained in:
notohh 2023-11-30 22:28:14 -05:00
parent 76584937f1
commit 5b921e633a
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -2,6 +2,8 @@ _: {
services.grafana = {
enable = true;
settings = {
"auth.anonymous".enabled = true;
"auth.basic".enabled = false;
server = {
root_url = "https://metrics.flake.sh";
domain = "metrics.flake.sh";
@ -9,8 +11,6 @@ _: {
http_addr = "0.0.0.0";
http_port = 3100;
};
"auth.anonymous".enabled = true;
"auth.basic".enabled = false;
users = {
allow_signup = false;
};
@ -21,6 +21,10 @@ _: {
user = "grafana";
ssl_mode = "disable";
};
panels = {
disable_sanitize_html = false;
enable_alpha = true;
};
};
provision = {
datasources.settings = {
@ -55,6 +59,17 @@ _: {
url = "http://100.104.42.96:9090";
orgId = 1;
}
{
name = "Prometheus-haru";
type = "prometheus";
url = "http://100.73.192.45:9090";
orgId = 1;
jsonData = {
graphiteVersion = "1.1";
tlsAuth = false;
tlsAuthWithCACert = false;
};
}
];
};
};