mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2025-08-06 13:49:34 +02:00
ildkule/prometheus/exim: init
This commit is contained in:
parent
f5fed06381
commit
0600fce2ca
@ -2,11 +2,12 @@
|
|||||||
stateDir = "/data/monitoring/prometheus";
|
stateDir = "/data/monitoring/prometheus";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
./exim.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
|
./machines.nix
|
||||||
./matrix-synapse.nix
|
./matrix-synapse.nix
|
||||||
./mysqld.nix
|
./mysqld.nix
|
||||||
./postgres.nix
|
./postgres.nix
|
||||||
./machines.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.prometheus = {
|
services.prometheus = {
|
||||||
|
14
hosts/ildkule/services/monitoring/prometheus/exim.nix
Normal file
14
hosts/ildkule/services/monitoring/prometheus/exim.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.prometheus = {
|
||||||
|
scrapeConfigs = [
|
||||||
|
{
|
||||||
|
job_name = "exim";
|
||||||
|
scrape_interval = "15s";
|
||||||
|
static_configs = [{
|
||||||
|
targets = [ "microbel.pvv.ntnu.no:9636" ];
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user