From 6619f6bf4cf75180f1d098a66b04d89690a4d7bc Mon Sep 17 00:00:00 2001 From: dariuspie <30319704+dariuspie@users.noreply.github.com> Date: Mon, 5 Feb 2024 12:42:24 +0200 Subject: [PATCH] Fix header propagation in PromRemoteWriteSink (#98) (#99) --- 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, } }