monitoring #1
1 changed files with 2 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
{molecules, ...}:{
|
||||
{
|
||||
universal.modules = [
|
||||
{
|
||||
services.prometheus.exporters = {
|
||||
|
@ -13,14 +13,6 @@
|
|||
];
|
||||
glucose.modules = [
|
||||
({
|
||||
nixpkgs,
|
||||
molecules,
|
||||
...
|
||||
}: let
|
||||
ip = i: "10.24.1.${toString i}";
|
||||
ips = builtins.mapAttrs (nixpkgs.lib.const ip) molecules;
|
||||
ips' = builtins.mapAttrs (name: ip: "${ip}:6703") ips;
|
||||
in {
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
port = 6750;
|
||||
|
@ -31,7 +23,7 @@
|
|||
job_name = "devices";
|
||||
static_configs = [
|
||||
{
|
||||
targets = ips';
|
||||
targets = [ "10.24.1.4:6703" "10.24.1.9:6703" "10.24.1.16:6703" "10.24.1.225:6703" "10.24.1.196:6703" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue