mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
services/prometheus: Harvest dht22 over ygg
This commit is contained in:
parent
7ad342a6a4
commit
f7f116a9a8
1 changed files with 6 additions and 1 deletions
|
|
@ -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}" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue