From f8eeb5b5b9d9151dfbe06735be4acdf8455bfd65 Mon Sep 17 00:00:00 2001 From: dariuspie <30319704+dariuspie@users.noreply.github.com> Date: Sat, 3 Feb 2024 17:29:44 +0200 Subject: [PATCH] Fix header propagation in PromRemoteWriteSink (#98) --- exporter/sinks/prom.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exporter/sinks/prom.go b/exporter/sinks/prom.go index 286677b..e80a18d 100644 --- a/exporter/sinks/prom.go +++ b/exporter/sinks/prom.go @@ -5,12 +5,12 @@ import ( "strconv" "time" - "github.com/castai/promwrite" "github.com/sirupsen/logrus" "inet.af/netaddr" "github.com/castai/egressd/exporter/config" "github.com/castai/egressd/pb" + "github.com/castai/promwrite" ) type promWriter interface { @@ -25,6 +25,7 @@ func NewPromRemoteWriteSink(log logrus.FieldLogger, sinkName string, cfg config. }), client: promwrite.NewClient(cfg.URL), timeGetter: timeGetter, + cfg: cfg, } }