Freya: Prometheus
This commit is contained in:
parent
abdc6ef3c4
commit
3474daf269
1 changed files with 22 additions and 0 deletions
|
|
@ -333,6 +333,28 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
prometheus = {
|
||||
enable = true;
|
||||
exporters = {
|
||||
node = { enable = true; enabledCollectors = [ "systemd" ]; };
|
||||
systemd.enable = true;
|
||||
};
|
||||
globalConfig = {
|
||||
scrape_interval = "5s";
|
||||
};
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "node";
|
||||
static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }];
|
||||
}
|
||||
{
|
||||
job_name = "systemd";
|
||||
static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ]; }];
|
||||
}
|
||||
];
|
||||
retentionTime = "15d";
|
||||
};
|
||||
|
||||
snapper.configs =
|
||||
let
|
||||
common = { TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue