2023-07-21 20:18:58 +10:00
|
|
|
{
|
|
|
|
services.telegraf.extraConfig.inputs = {
|
|
|
|
http_response = [
|
2023-10-25 11:53:51 +10:00
|
|
|
{
|
|
|
|
urls = [ "https://buildbot.nix-community.org/" ];
|
|
|
|
response_string_match = "Buildbot Web UI";
|
|
|
|
tags.host = "build03.nix-community.org";
|
|
|
|
tags.org = "nix-community";
|
|
|
|
}
|
2023-08-10 10:57:30 +10:00
|
|
|
{
|
|
|
|
urls = [ "https://hydra.nix-community.org/" ];
|
|
|
|
response_string_match = "hosted on this server";
|
|
|
|
tags.host = "build03.nix-community.org";
|
|
|
|
tags.org = "nix-community";
|
|
|
|
}
|
2023-07-21 20:18:58 +10:00
|
|
|
{
|
|
|
|
urls = [ "https://nur-update.nix-community.org/" ];
|
|
|
|
response_string_match = "NUR update endpoint";
|
2023-11-12 09:51:41 +10:00
|
|
|
tags.host = "build03.nix-community.org";
|
2023-07-21 20:18:58 +10:00
|
|
|
tags.org = "nix-community";
|
|
|
|
}
|
2024-04-03 07:15:58 +10:00
|
|
|
{
|
2024-04-27 20:00:24 +10:00
|
|
|
urls = [ "https://nixpkgs-update-logs.nix-community.org/~supervisor/" ];
|
2024-04-03 07:15:58 +10:00
|
|
|
response_string_match = "state.db";
|
|
|
|
tags.host = "build02.nix-community.org";
|
|
|
|
tags.org = "nix-community";
|
|
|
|
}
|
2023-07-21 20:18:58 +10:00
|
|
|
];
|
|
|
|
net_response =
|
|
|
|
let
|
2023-08-14 20:41:52 +10:00
|
|
|
hosts = import ./hosts.nix;
|
2023-07-21 20:18:58 +10:00
|
|
|
in
|
2024-07-24 19:05:26 +10:00
|
|
|
map (host: {
|
|
|
|
protocol = "tcp";
|
|
|
|
address = "${host}:22";
|
|
|
|
send = "SSH-2.0-Telegraf";
|
|
|
|
expect = "SSH-2.0";
|
|
|
|
tags.host = host;
|
|
|
|
tags.org = "nix-community";
|
|
|
|
timeout = "10s";
|
|
|
|
}) hosts;
|
|
|
|
prometheus.urls = [ "https://events.ofborg.org/prometheus.php" ];
|
2023-07-21 20:18:58 +10:00
|
|
|
};
|
|
|
|
}
|