aaa
This commit is contained in:
parent
62f7bcc397
commit
fb5fa40e86
5 changed files with 25 additions and 9 deletions
|
|
@ -71,16 +71,29 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ragon.agenix.secrets."prometheusBlackboxConfig" = { owner = config.services.prometheus.exporters.blackbox.user; };
|
ragon.agenix.secrets."prometheusBlackboxConfig.yaml" = { owner = "prometheus"; };
|
||||||
users.groups.${config.services.prometheus.exporters.blackbox.user} = { };
|
services.prometheus.scrapeConfigs = [{
|
||||||
users.users.${config.services.prometheus.exporters.blackbox.user} = {
|
job_name = "blackbox";
|
||||||
isSystemUser = true;
|
file_sd_configs = [{
|
||||||
group = config.services.prometheus.exporters.blackbox.user;
|
files = [
|
||||||
};
|
config.age.secrets."prometheusBlackboxConfig.yaml".path
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
}];
|
||||||
|
services.prometheus.checkConfig = false;
|
||||||
services.prometheus.exporters.blackbox = {
|
services.prometheus.exporters.blackbox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configFile = "${config.age.secrets.prometheusBlackboxConfig.path}";
|
configFile = pkgs.writeText "blackboxexporter" ''
|
||||||
enableConfigCheck = false;
|
modules:
|
||||||
|
dns:
|
||||||
|
prober: dns
|
||||||
|
http_2xx:
|
||||||
|
prober: http
|
||||||
|
timeout: 5s
|
||||||
|
http:
|
||||||
|
method: GET
|
||||||
|
preferred_ip_protocol: "ip4" # defaults to "ip6"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -111,6 +111,9 @@ in
|
||||||
locations."/_matrix" = {
|
locations."/_matrix" = {
|
||||||
proxyPass = "http://${localAddress}:8008"; # without a trailing /
|
proxyPass = "http://${localAddress}:8008"; # without a trailing /
|
||||||
};
|
};
|
||||||
|
locations."/notifications" = {
|
||||||
|
proxyPass = "http://${localAddress}:8008"; # without a trailing /
|
||||||
|
};
|
||||||
locations."/synapse" = {
|
locations."/synapse" = {
|
||||||
proxyPass = "http://${localAddress}:8008"; # without a trailing /
|
proxyPass = "http://${localAddress}:8008"; # without a trailing /
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Binary file not shown.
BIN
secrets/prometheusBlackboxConfig.yaml.age
Normal file
BIN
secrets/prometheusBlackboxConfig.yaml.age
Normal file
Binary file not shown.
|
|
@ -23,7 +23,7 @@ in
|
||||||
"gitlabSecretFile.age".publicKeys = pubkeys.ragon.host "picard";
|
"gitlabSecretFile.age".publicKeys = pubkeys.ragon.host "picard";
|
||||||
"gitlabDBFile.age".publicKeys = pubkeys.ragon.host "picard";
|
"gitlabDBFile.age".publicKeys = pubkeys.ragon.host "picard";
|
||||||
"gitlabOTPFile.age".publicKeys = pubkeys.ragon.host "picard";
|
"gitlabOTPFile.age".publicKeys = pubkeys.ragon.host "picard";
|
||||||
"prometheusBlackboxConfig.age".publicKeys = pubkeys.ragon.host "beliskner";
|
"prometheusBlackboxConfig.yaml.age".publicKeys = pubkeys.ragon.host "beliskner";
|
||||||
"gitlabJWSFile.age".publicKeys = pubkeys.ragon.host "picard";
|
"gitlabJWSFile.age".publicKeys = pubkeys.ragon.host "picard";
|
||||||
"nextcloudAdminPass.age".publicKeys = pubkeys.ragon.host "picard";
|
"nextcloudAdminPass.age".publicKeys = pubkeys.ragon.host "picard";
|
||||||
"picardResticSSHKey.age".publicKeys = pubkeys.ragon.host "picard";
|
"picardResticSSHKey.age".publicKeys = pubkeys.ragon.host "picard";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue