grafana sso
This commit is contained in:
parent
8131132c49
commit
8e30de4995
8 changed files with 163 additions and 11 deletions
|
|
@ -1,5 +1,22 @@
|
|||
{config, ...}:
|
||||
let
|
||||
inherit ( config.services ) prometheus;
|
||||
nodes = [
|
||||
"100.65.29.110"
|
||||
"100.106.241.122"
|
||||
];
|
||||
addPort = ip: "${ip}:${toString prometheus.exporters.node.port}";
|
||||
in
|
||||
{
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "nodes";
|
||||
static_configs = [{
|
||||
targets = builtins.map addPort nodes;
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue