From 59d33d4274266f3aabf6f70bd36d6b83a4c09ac8 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Thu, 28 Mar 2024 11:45:20 +0100 Subject: [PATCH] Maybe websockets? --- nixos/server/package-configs/dashboard/telegraf/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/server/package-configs/dashboard/telegraf/default.nix b/nixos/server/package-configs/dashboard/telegraf/default.nix index 1da8ba7..705a10b 100644 --- a/nixos/server/package-configs/dashboard/telegraf/default.nix +++ b/nixos/server/package-configs/dashboard/telegraf/default.nix @@ -43,10 +43,10 @@ system = {}; }; outputs = { - http = { - url = "http://localhost:${toString config.services.prometheus.port}/api/live/push/custom_stream_id"; + websocket = { + url = "ws://localhost:${toString config.services.prometheus.port}/api/live/push/custom_stream_id"; data_format = "influx"; - outputs.http.headers = "Bearer glsa_lqpcKV34Pp0d7eIhKN79E2HTwzWWwN4m_fe64e398"; + outputs.websocket.headers = "Bearer glsa_lqpcKV34Pp0d7eIhKN79E2HTwzWWwN4m_fe64e398"; }; }; };