1
0

Compare commits

...

3 Commits

Author SHA1 Message Date
2525c506fc Add debian host mail-1 to monitoring 2021-06-20 16:06:42 +02:00
d43e635f9e Update iot-dat 2021-06-20 16:05:59 +02:00
1cb3143096 Let prometheus scrape temperature values from iot data 2021-06-20 16:05:37 +02:00
3 changed files with 43 additions and 1 deletions

View File

@ -0,0 +1,16 @@
{ ... }:
{
imports =
[
../../configuration/common
];
networking.hostName = "mail-1";
clerie.monitoring = {
enable = true;
id = "208";
pubkey = "s2GT9iYQmuiwkZ04KzSqqlIEbUJ6CT6i4htCjWYt2xs=";
};
}

View File

@ -91,6 +91,32 @@ in {
} }
]; ];
} }
{
job_name = "zimmer-temp";
scrape_interval = "20s";
scheme = "https";
metrics_path = "/data/zimmer-temp/";
static_configs = [
{
targets = [
"iot-data.clerie.de"
];
}
];
}
{
job_name = "outdoor-temp";
scrape_interval = "20s";
scheme = "https";
metrics_path = "/data/outdoor-temp/";
static_configs = [
{
targets = [
"iot-data.clerie.de"
];
}
];
}
]; ];
}; };

View File

@ -7,7 +7,7 @@
let let
src = fetchGit { src = fetchGit {
url = "https://git.clerie.de/clerie/iot-data.git"; url = "https://git.clerie.de/clerie/iot-data.git";
rev = "519c68c455961042b282db94a94f0fad0fa2e965"; rev = "f60e3a3f89549b4ce88df20888c08a01062d086a";
}; };
pname = "iot-data"; pname = "iot-data";
version = "0.0.1"; version = "0.0.1";