mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-07-04 09:51:47 +02:00
Compare commits
3 Commits
56906241f6
...
966081ebfc
| Author | SHA1 | Date | |
|---|---|---|---|
| 966081ebfc | |||
| 39d313579c | |||
| 3386153b8b |
@@ -23,6 +23,9 @@ in
|
|||||||
bind-address = values.services.mysql.ipv4;
|
bind-address = values.services.mysql.ipv4;
|
||||||
skip-networking = 0;
|
skip-networking = 0;
|
||||||
|
|
||||||
|
# Useful for the mysqld prometheus exporter
|
||||||
|
userstat = 1;
|
||||||
|
|
||||||
# This was needed in order to be able to use all of the old users
|
# This was needed in order to be able to use all of the old users
|
||||||
# during migration from knakelibrak to bicep in Sep. 2023
|
# during migration from knakelibrak to bicep in Sep. 2023
|
||||||
secure_auth = 0;
|
secure_auth = 0;
|
||||||
@@ -71,4 +74,16 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.logrotate = lib.mkIf (cfg.settings.mysqld.slow-query-log == 1) {
|
||||||
|
enable = true;
|
||||||
|
settings.mysql-slowlog = {
|
||||||
|
files = [ cfg.settings.mysqld.slow-query-log-file ];
|
||||||
|
frequency = "weekly";
|
||||||
|
rotate = 12;
|
||||||
|
create = "0660 mysql mysql";
|
||||||
|
minsize = "1M";
|
||||||
|
compress = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services.prometheus = {
|
services.prometheus.scrapeConfigs = [{
|
||||||
scrapeConfigs = [
|
job_name = "exim";
|
||||||
{
|
scrape_interval = "15s";
|
||||||
job_name = "exim";
|
scheme = "http";
|
||||||
scrape_interval = "15s";
|
|
||||||
static_configs = [{
|
static_configs = [{
|
||||||
targets = [ "microbel.pvv.ntnu.no:9636" ];
|
targets = [ "microbel.pvv.ntnu.no:9636" ];
|
||||||
}];
|
}];
|
||||||
}
|
}];
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user