chore: prepare monitoring config via globals

This commit is contained in:
oddlama 2024-07-12 15:39:18 +02:00
parent c3ad25a79b
commit a33c46e4f5
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 19 additions and 4 deletions

View file

@ -29,6 +29,17 @@ in {
meta.telegraf.secrets."@GITHUB_ACCESS_TOKEN@" = config.age.secrets.github-access-token.path;
services.telegraf.extraConfig.outputs.influxdb_v2.urls = lib.mkForce ["http://localhost:${toString influxdbPort}"];
globals.monitoring.ping.cloudflare-dns = {
host = "1.1.1.1";
location = "external";
};
globals.monitoring.ping.google-dns = {
host = "8.8.8.8";
location = "external";
};
services.telegraf.extraConfig.inputs = {
ping = [
{