feat(grafana): add unifi polling via unpoller
This commit is contained in:
parent
c066c5f418
commit
eab8c956b5
1 changed files with 18 additions and 0 deletions
|
@ -125,6 +125,16 @@ in {
|
||||||
node = {
|
node = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
unpoller = {
|
||||||
|
enable = true;
|
||||||
|
controllers = [{
|
||||||
|
user = "flyingstitchman";
|
||||||
|
pass = "/persist/unifi-pass.txt";
|
||||||
|
verify_ssl = false;
|
||||||
|
url = "https://localhost:7443";
|
||||||
|
save_dpi = true;
|
||||||
|
}];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
globalConfig.scrape_interval = "10s";
|
globalConfig.scrape_interval = "10s";
|
||||||
scrapeConfigs = [{
|
scrapeConfigs = [{
|
||||||
|
@ -139,8 +149,16 @@ in {
|
||||||
targets = [ "localhost:9008"];
|
targets = [ "localhost:9008"];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
job_name = "unpoller";
|
||||||
|
static_configs = [{
|
||||||
|
targets = [ "localhost:9130"];
|
||||||
|
}];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
unpoller = {
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue