mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
prometheus
This commit is contained in:
parent
52f15e28b9
commit
d60dcc45d6
3 changed files with 18 additions and 4 deletions
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
services.prometheus.enable = true;
|
||||
}
|
||||
18
modules/services/system-logging/prometheus-server.nix
Normal file
18
modules/services/system-logging/prometheus-server.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "prometheus";
|
||||
scrape_interval = "5s";
|
||||
static_configs = [
|
||||
{
|
||||
targets = [
|
||||
"localhost:9090"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue