From a5e91e20b4ab8e6729f4d5833844bcb0862df78e Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Thu, 10 Aug 2023 10:57:30 +1000
Subject: [PATCH] modules/nixos/monitoring/telegraf: add hydra and
 nixpkgs-update logs

---
 modules/nixos/monitoring/telegraf.nix | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/modules/nixos/monitoring/telegraf.nix b/modules/nixos/monitoring/telegraf.nix
index 84a2e24..a7a9953 100644
--- a/modules/nixos/monitoring/telegraf.nix
+++ b/modules/nixos/monitoring/telegraf.nix
@@ -1,6 +1,12 @@
 {
   services.telegraf.extraConfig.inputs = {
     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/" ];
         response_string_match = "Lemmy for Nix";
@@ -13,6 +19,12 @@
         tags.host = "build03.nix-community.org";
         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 =
       let