2023-06-11 02:08:06 -04:00
|
|
|
_: {
|
2023-06-06 00:08:22 -04:00
|
|
|
services.grafana = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
2023-11-30 22:28:14 -05:00
|
|
|
"auth.anonymous".enabled = true;
|
|
|
|
"auth.basic".enabled = false;
|
2023-06-06 00:08:22 -04:00
|
|
|
server = {
|
2023-10-03 14:24:26 -04:00
|
|
|
root_url = "https://metrics.flake.sh";
|
|
|
|
domain = "metrics.flake.sh";
|
2023-06-06 00:08:22 -04:00
|
|
|
enforce_domain = true;
|
|
|
|
http_addr = "0.0.0.0";
|
|
|
|
http_port = 3100;
|
|
|
|
};
|
|
|
|
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";
|
|
|
|
};
|
2023-11-30 22:28:14 -05:00
|
|
|
panels = {
|
|
|
|
disable_sanitize_html = false;
|
|
|
|
enable_alpha = true;
|
|
|
|
};
|
2023-06-06 00:08:22 -04:00
|
|
|
};
|
|
|
|
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";
|
2024-01-17 08:55:46 -05:00
|
|
|
url = "http://100.126.229.95:9090";
|
2023-06-19 09:23:56 -04:00
|
|
|
orgId = 1;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "Prometheus-yuki";
|
|
|
|
type = "prometheus";
|
2024-01-17 08:55:46 -05:00
|
|
|
url = "http://100.108.113.89:9090";
|
2023-06-19 09:23:56 -04:00
|
|
|
orgId = 1;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "Prometheus-arashi";
|
|
|
|
type = "prometheus";
|
2024-01-17 08:55:46 -05:00
|
|
|
url = "http://100.94.214.100:9090";
|
2023-06-06 00:08:22 -04:00
|
|
|
orgId = 1;
|
|
|
|
}
|
2023-06-24 18:09:21 -04:00
|
|
|
{
|
|
|
|
name = "Prometheus-sora";
|
|
|
|
type = "prometheus";
|
2023-11-29 23:04:57 -05:00
|
|
|
url = "http://100.104.42.96:9090";
|
2023-06-24 18:09:21 -04:00
|
|
|
orgId = 1;
|
|
|
|
}
|
2024-01-17 08:55:46 -05:00
|
|
|
{
|
|
|
|
name = "Prometheus-tsuru";
|
|
|
|
type = "prometheus";
|
|
|
|
url = "http://100.82.146.40:9090";
|
|
|
|
orgId = 1;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "Prometheus-kaze";
|
|
|
|
type = "prometheus";
|
|
|
|
url = "http://100.69.79.81:9090";
|
|
|
|
orgId = 1;
|
|
|
|
}
|
2023-11-30 22:28:14 -05:00
|
|
|
{
|
|
|
|
name = "Prometheus-haru";
|
|
|
|
type = "prometheus";
|
|
|
|
url = "http://100.73.192.45:9090";
|
|
|
|
orgId = 1;
|
|
|
|
jsonData = {
|
|
|
|
graphiteVersion = "1.1";
|
|
|
|
tlsAuth = false;
|
|
|
|
tlsAuthWithCACert = false;
|
|
|
|
};
|
|
|
|
}
|
2023-06-06 00:08:22 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|