From ea787def35e5bc83d11539a20f1ead3310bdcba9 Mon Sep 17 00:00:00 2001 From: Thibault bui Koechlin Date: Wed, 17 Jun 2020 23:39:52 +0200 Subject: [PATCH] always --- pkg/parser/node.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/parser/node.go b/pkg/parser/node.go index 1506ef9f7..20e8cba7b 100644 --- a/pkg/parser/node.go +++ b/pkg/parser/node.go @@ -141,7 +141,7 @@ func (n *Node) process(p *types.Event, ctx UnixParserCtx) (bool, error) { NodeState = true } - if n.Profiling && n.Name != "" { + if n.Name != "" { NodesHits.With(prometheus.Labels{"source": p.Line.Src, "name": n.Name}).Inc() } set := false @@ -285,14 +285,14 @@ func (n *Node) process(p *types.Event, ctx UnixParserCtx) (bool, error) { //grok or leafs failed, don't process statics if !NodeState { - if n.Profiling && n.Name != "" { + if n.Name != "" { NodesHitsKo.With(prometheus.Labels{"source": p.Line.Src, "name": n.Name}).Inc() } clog.Debugf("Event leaving node : ko") return NodeState, nil } - if n.Profiling && n.Name != "" { + if n.Name != "" { NodesHitsOk.With(prometheus.Labels{"source": p.Line.Src, "name": n.Name}).Inc() } if len(n.Statics) > 0 {