modules/nixos/monitoring/telegraf: add hydra and nixpkgs-update logs

This commit is contained in:
zowoq 2023-08-10 10:57:30 +10:00
parent 430555b4ae
commit a5e91e20b4

View file

@ -1,6 +1,12 @@
{ {
services.telegraf.extraConfig.inputs = { services.telegraf.extraConfig.inputs = {
http_response = [ http_response = [
{
urls = [ "https://hydra.nix-community.org/" ];
response_string_match = "hosted on this server";
tags.host = "build03.nix-community.org";
tags.org = "nix-community";
}
{ {
urls = [ "https://lemmy.nix-community.org/" ]; urls = [ "https://lemmy.nix-community.org/" ];
response_string_match = "Lemmy for Nix"; response_string_match = "Lemmy for Nix";
@ -13,6 +19,12 @@
tags.host = "build03.nix-community.org"; tags.host = "build03.nix-community.org";
tags.org = "nix-community"; tags.org = "nix-community";
} }
{
urls = [ "https://r.ryantm.com/log/" ];
response_string_match = "Index of /log/";
tags.host = "build02.nix-community.org";
tags.org = "nix-community";
}
]; ];
net_response = net_response =
let let