Compare commits

...

2 Commits

Author SHA1 Message Date
cff00b637d feat: restart heracles if the config file changes 2024-03-20 15:15:29 -04:00
edb6ba71c5 feat: cpu query adjustment 2024-03-20 15:15:08 -04:00
2 changed files with 4 additions and 1 deletions

View File

@ -81,7 +81,7 @@
query = ''
sum by (job,instance, mode)(irate(node_cpu_seconds_total{mode!="idle"}[5m]))
/ ignoring(mode) group_left
sum by (job,instance)(irate(node_cpu_seconds_total{mode!="idle"}[5m]))
sum by (job,instance)(irate(node_cpu_seconds_total[5m]))
'';
meta = {
name_format = "`\${labels.instance} - \${labels.mode}`";

View File

@ -102,6 +102,9 @@ with lib;
"--listen=${config.services.heracles.listen}"
"--config=/etc/${config.environment.etc."heracles.yaml".target}"
];
WatchPaths = [
"/etc/${config.environment.etc."heracles.yaml".target}"
];
KeepAlive = true;
RunAtLoad = true;
};