Add metrics-nekomesh host
This commit is contained in:
parent
1ad857a33a
commit
3fcd427251
10 changed files with 138 additions and 0 deletions
16
config/hosts/metrics-nekomesh/prometheus.nix
Normal file
16
config/hosts/metrics-nekomesh/prometheus.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
retentionTime = "2y";
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "meshcore";
|
||||
scrape_interval = "15m";
|
||||
static_configs = [{
|
||||
targets = [ "localhost:9091" ];
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue