@@ -76,7 +76,7 @@ var pipelineCmd = &cobra.Command{
7676 $ check_logstash pipeline --inflight-events-warn 5 --inflight-events-crit 10 --pipeline example
7777 CRITICAL - Inflight events
7878 \_[CRITICAL] inflight_events_example:15` ,
79- Run : func (cmd * cobra.Command , args []string ) {
79+ Run : func (_ * cobra.Command , _ []string ) {
8080 var (
8181 output string
8282 rc int
@@ -143,7 +143,7 @@ var pipelineCmd = &cobra.Command{
143143 Uom : "c" ,
144144 Value : pipe .Events .Out })
145145 perfList .Add (& perfdata.Perfdata {
146- Label : fmt .Sprintf ("inflight_events_%s" , name ),
146+ Label : fmt .Sprintf ("inflight_events_%s" , name ), //nolint: perfsprint
147147 Warn : thresholds .Warning ,
148148 Crit : thresholds .Critical ,
149149 Value : inflightEvents })
@@ -187,7 +187,7 @@ var pipelineReloadCmd = &cobra.Command{
187187 $ check_logstash pipeline reload --pipeline Example
188188 CRITICAL - Configuration reload failed
189189 \_[CRITICAL] Configuration reload for pipeline Example failed on 2021-01-01T02:07:14Z` ,
190- Run : func (cmd * cobra.Command , args []string ) {
190+ Run : func (_ * cobra.Command , _ []string ) {
191191 var (
192192 output string
193193 rc int
@@ -278,7 +278,7 @@ var pipelineFlowCmd = &cobra.Command{
278278 $ check_logstash pipeline flow --pipeline example --warning 5 --critical 10
279279 CRITICAL - Flow metrics not alright
280280 \_[CRITICAL] queue_backpressure_example:11.23;` ,
281- Run : func (cmd * cobra.Command , args []string ) {
281+ Run : func (_ * cobra.Command , _ []string ) {
282282 var (
283283 output string
284284 rc int
@@ -335,7 +335,7 @@ var pipelineFlowCmd = &cobra.Command{
335335
336336 // Generate perfdata for each event
337337 perfList .Add (& perfdata.Perfdata {
338- Label : fmt .Sprintf ("pipelines.queue_backpressure_%s" , name ),
338+ Label : fmt .Sprintf ("pipelines.queue_backpressure_%s" , name ), //nolint: perfsprint
339339 Warn : thresholds .Warning ,
340340 Crit : thresholds .Critical ,
341341 Value : pipe .Flow .QueueBackpressure .Current })
0 commit comments