logstash icon indicating copy to clipboard operation
logstash copied to clipboard

Warning in logs => A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: send_to

Open willemdh opened this issue 4 years ago • 13 comments

Logstash 7.13.1 from RPM with systemd, Red Hat 8

After starting to use inter pipeline communication with the pipeline output, I started seeing the following warnings in our Logstash logs:

[2021-07-28T17:34:33,187][WARN ][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge][net-sflow-01] A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: send_to. This may result in invalid serialization.  It is recommended to log an issue to the responsible developer/development team.
[2021-07-28T17:34:33,189][WARN ][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge][net-sflow-01] A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: send_to. This may result in invalid serialization.  It is recommended to log an issue to the responsible developer/development team.

Speicific configuration triggering the above warning:

output {
    if [sflow_type] == "flow_sample" or [sflow_type] == "expanded_flow_sample" {
        pipeline { 
            send_to => ["net-sflow-sample-01"]
        }
    }
    else if [sflow_type] == "counter_sample" {
        pipeline { 
            send_to => ["net-sflow-counter-01"]
        }
    }
}

willemdh avatar Jul 28 '21 15:07 willemdh

For now, this warning should be internal-facing to the Logstash team, and is not something that users of Logstash need to worry about.

The results of this metric are polled from the node stats API, and we have observed no issues serializing arrays of strings there.

yaauie avatar Dec 15 '21 21:12 yaauie

Can confirm I am still seeing this with logstash 8.4.1 [2022-09-15T09:27:56,066][WARN ][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge][beats_input_into_logstash] A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been created for key: send_to. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.

shaunbugler avatar Sep 15 '22 07:09 shaunbugler

and still existing in 8.5.2

anubisg1 avatar Nov 25 '22 21:11 anubisg1

7.17.8 too

limdoglim avatar Apr 14 '23 08:04 limdoglim

Still existing in 8.7.0

joel-jeremy avatar Apr 20 '23 22:04 joel-jeremy

Still facing in logstash-7.16.3-1.x86_64

k001 avatar May 19 '23 20:05 k001

For now, this warning should be internal-facing to the Logstash team, and is not something that users of Logstash need to worry about.

The results of this metric are polled from the node stats API, and we have observed no issues serializing arrays of strings there.

If this is supposed to be "internal-facing" and "users of Logstash need [not] to worry about", is it possible to downgrade this to a DEBUG message, so users don't have to bother with it? It's quite tedious to actively ignore/filter all the messages I do not have to "worry" about and can "ignore".

ash-darin avatar Sep 06 '23 11:09 ash-darin

and.. still facing in logstash 8.11.3

hsousa79 avatar Jan 05 '24 14:01 hsousa79