2022-02-01 01:20:26 +00:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.grafana = {
|
2022-12-29 16:06:15 +00:00
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
server = {
|
|
|
|
domain = "chrysalis.shark-harmonic.ts.net";
|
|
|
|
http_port = 2342;
|
|
|
|
http_addr = "0.0.0.0";
|
2022-12-29 17:30:02 +00:00
|
|
|
root_url = "https://chrysalis.shark-harmonic.ts.net";
|
2022-12-29 16:06:15 +00:00
|
|
|
};
|
|
|
|
};
|
2022-02-01 01:20:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
services.prometheus = {
|
|
|
|
enable = true;
|
|
|
|
globalConfig.scrape_interval = "15s";
|
|
|
|
scrapeConfigs = [
|
|
|
|
# services
|
|
|
|
{
|
|
|
|
job_name = "mi";
|
|
|
|
static_configs = [{ targets = [ "lufta:38184" ]; }];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "site";
|
|
|
|
metrics_path = "/xesite";
|
|
|
|
static_configs = [{ targets = [ "lufta:43705" ]; }];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "nginx";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [ "lufta:9113" "lufta:9117" ];
|
|
|
|
labels.host = "lufta";
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "rhea";
|
|
|
|
static_configs = [{ targets = [ "lufta:23818" ]; }];
|
|
|
|
}
|
|
|
|
|
2022-12-29 16:31:26 +00:00
|
|
|
# xedn
|
|
|
|
{
|
|
|
|
job_name = "xedn";
|
|
|
|
metrics_path = "/debug/varz";
|
|
|
|
static_configs = [
|
|
|
|
{
|
|
|
|
targets = [ "xedn-fra:80" ];
|
|
|
|
labels.region = "fra";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
targets = [ "xedn-sea:80" ];
|
|
|
|
labels.region = "sea";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
targets = [ "xedn-yyz:80" ];
|
|
|
|
labels.region = "yyz";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
2022-02-01 01:20:26 +00:00
|
|
|
# computers
|
|
|
|
{
|
|
|
|
job_name = "chrysalis";
|
2022-02-23 16:34:25 +00:00
|
|
|
static_configs = [{ targets = [ "chrysalis:9100" ]; }];
|
2022-02-01 01:20:26 +00:00
|
|
|
}
|
2022-02-23 16:51:47 +00:00
|
|
|
{
|
|
|
|
job_name = "firgu";
|
|
|
|
static_configs = [{ targets = [ "firgu:9100" ]; }];
|
|
|
|
}
|
2022-02-01 01:20:26 +00:00
|
|
|
{
|
|
|
|
job_name = "shachi";
|
2022-02-23 16:34:25 +00:00
|
|
|
static_configs = [{ targets = [ "shachi:9100" ]; }];
|
2022-02-01 01:20:26 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "lufta";
|
2022-02-23 16:34:25 +00:00
|
|
|
static_configs = [{ targets = [ "lufta:9100" ]; }];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "itsuki";
|
|
|
|
static_configs = [{ targets = [ "itsuki:9100" ]; }];
|
2022-02-01 01:20:26 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "kos-mos";
|
2022-02-23 16:34:25 +00:00
|
|
|
static_configs = [{ targets = [ "kos-mos:9100" ]; }];
|
2022-02-01 01:20:26 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "logos";
|
2022-02-23 16:34:25 +00:00
|
|
|
static_configs = [{ targets = [ "logos:9100" ]; }];
|
2022-02-01 01:20:26 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "ontos";
|
2022-02-23 16:34:25 +00:00
|
|
|
static_configs = [{ targets = [ "ontos:9100" ]; }];
|
2022-02-01 01:20:26 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "pneuma";
|
2022-02-23 16:34:25 +00:00
|
|
|
static_configs = [{ targets = [ "pneuma:9100" ]; }];
|
2022-02-01 01:20:26 +00:00
|
|
|
}
|
2022-11-27 18:21:44 +00:00
|
|
|
{
|
2022-12-29 16:31:26 +00:00
|
|
|
job_name = "akko";
|
|
|
|
static_configs = [{ targets = [ "akko:9100" ]; }];
|
2022-11-27 18:21:44 +00:00
|
|
|
}
|
2022-02-01 01:20:26 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
exporters = {
|
2022-12-29 16:31:26 +00:00
|
|
|
node = { enable = true; };
|
2022-02-01 01:20:26 +00:00
|
|
|
wireguard.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|