rico0: enable prometheus
This commit is contained in:
parent
196749c9cc
commit
41706989bb
3 changed files with 24 additions and 1 deletions
|
@ -65,6 +65,10 @@ _: {
|
|||
upstream = "192.168.1.1";
|
||||
singleNameOrder = [ 2 1 ];
|
||||
};
|
||||
prometheus = {
|
||||
enable = true;
|
||||
path = "/metrics";
|
||||
};
|
||||
ports = {
|
||||
dns = "192.168.1.10:53,10.10.10.10:53";
|
||||
tls = "192.168.1.10:853,10.10.10.10:853";
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
_: {
|
||||
imports = [ ./blocky.nix ];
|
||||
imports = [ ./blocky.nix ./prometheus.nix ];
|
||||
}
|
||||
|
|
19
hosts/rico0/services/apps/prometheus.nix
Normal file
19
hosts/rico0/services/apps/prometheus.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
_: {
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "frp";
|
||||
static_configs = [
|
||||
{ targets = [ "10.10.10.1:7500" ]; }
|
||||
];
|
||||
}
|
||||
{
|
||||
job_name = "blocky";
|
||||
static_configs = [
|
||||
{ targets = [ "10.10.10.10:8080" ]; }
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue