services/prometheus: Harvest dht22 over ygg

This commit is contained in:
kat witch 2021-05-03 22:09:32 +01:00
parent 7ad342a6a4
commit f7f116a9a8
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -11,7 +11,12 @@ let
in {
services.prometheus = {
enable = true;
scrapeConfigs = mapAttrsToList (hostName: prom: {
scrapeConfigs = [
{
job_name = "boline";
static_configs = [{ targets = [ "boline.net.kittywit.ch:8002" ];}];
}
] ++ mapAttrsToList (hostName: prom: {
job_name = hostName;
static_configs = [{
targets = [ "${hostName}.net.kittywit.ch:${toString prom.port}" ];