From owner-freebsd-hackers@freebsd.org Sun Apr 29 05:24:32 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 81075FC6D09 for ; Sun, 29 Apr 2018 05:24:32 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-yb0-x236.google.com (mail-yb0-x236.google.com [IPv6:2607:f8b0:4002:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 27E2D6E99C for ; Sun, 29 Apr 2018 05:24:32 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: by mail-yb0-x236.google.com with SMTP id i69-v6so2069849ybg.2 for ; Sat, 28 Apr 2018 22:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:from:date:message-id:subject:to; bh=JiSdxTGdysnvk4f2/kEXmydaexYCtm77ThNw7ztvRFI=; b=GRCVOOF6Vr7GdYmEGi0db0i5EvAiHB7mTq4LPXMHNQB9ZlHiwrKW9MJ3TYlvtEXY6r eNOvXbojZHTZrOlirEv1/kYSFMCgnfTv7oT7Etwqaczj0qf244cpGc2YA9dZvNXHD11w w+oIgLp2MoFqTSMCc5Qw+fboGwMdX3Fqi4umo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JiSdxTGdysnvk4f2/kEXmydaexYCtm77ThNw7ztvRFI=; b=fS0eBNM6P0eWSozWOVl/dTKKp0HRxnYAYN3GBlZOeqPVp2ffoVqwR0s47Og/UF1lO8 s2EY0uCDy8J0lmING9HSygw+vwy5nmnrGTVX4iXMFxaGNIWLt3WvhdHFqgM5/6XzLPIk x/o/nhQBaFQjHlWkjicknCstBVXtOHMD2M+WrSL6UeaCCoiPzvqlNQ9vzEEztNT5Ywr7 DyUQAXSFkhNRvi0MmoYhpuWYcTgEJjrLwXfTkjgGggyhVfskx9YVM5/+AwuKFrP+ZN51 AjRovu5g+z4ieekOWMnKhTYc03HjtxSi64gS7TrFlGVrA9rzpvt9NCUb5XulU+ixYa5J YBxg== X-Gm-Message-State: ALQs6tA9imS7jeLiviQBx0yKfc0a+M+rEJ2S0IV9Kw/Ld9vdOAiYP8ws hiXXZ1s1/08V44mvd8bbLbnq8F+zmf6t8QT0m3lQ9BSE X-Google-Smtp-Source: AB8JxZoc21iuW6Q/Dbrlmdqavwh5u5kc/Y14bgx50KqOCfE1XjrXJpvHoiW6Ri8ve3W76ulzmcLLfiG2kFgRwCmK72o= X-Received: by 2002:a25:5b0b:: with SMTP id p11-v6mr2994187ybb.338.1524979471238; Sat, 28 Apr 2018 22:24:31 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:c709:0:0:0:0:0 with HTTP; Sat, 28 Apr 2018 22:24:00 -0700 (PDT) From: Eitan Adler Date: Sat, 28 Apr 2018 22:24:00 -0700 Message-ID: Subject: "Sysctl as a Service" for influxdb / telegraf To: FreeBSD Hackers , Ed Schouten , daniel.nelson@influxdb.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Apr 2018 05:24:32 -0000 Resurrecting a somewhat old thread: I've been talking with the maintainer of telegraf about implementing an importer for the Prometheus exporter. They mentioned that they'd prefer a slightly different format. I'd like to add a new independent application similar to prometheus_sysctl_exporter for the influx wire format. Why independent? The set of options that each offer differ and the two formats will grow more different over time. For example prometheus supports descriptions, while influx support data types. Is there any objections to adding another application? If so, would a new output format for the existing binary be okay? References: Upstream issue: https://github.com/influxdata/telegraf/issues/4060 Proof of Concept: C code: https://ptpb.pw/At9H/c. I'm likely to factor out the common functions and include them as a single file when I commit. Original thread: https://lists.freebsd.org/pipermail/freebsd-hackers/2016-December/050283.html Wire format: https://docs.influxdata.com/influxdb/v1.5/write_protocols/line_protocol_tutorial/ -- Eitan Adler