weblogic-monitoring-exporter icon indicating copy to clipboard operation
weblogic-monitoring-exporter copied to clipboard

Missing datasource State metric

Open jlmolina-oracle opened this issue 3 years ago • 4 comments

We need to be able to expose the "State" of a given datasource in a managed server. As the WebLogic MBean fields that were string types were skipped by default since Prometheus was unable to support those types, currently the State is not exposed. As suggested by @ddsharpe , is it possible to create an exception for this field ? The type is just an enumeration that could be translated to an integer that Prometheus would support, and from there we can interpret it correctly. Thanks !!

jlmolina-oracle avatar Jul 25 '22 16:07 jlmolina-oracle

Please be as specific as possible. I believe that you are after the State attribute from JDBCDataSourceRuntime. State= (Running, Suspended, Stopped, Overloaded ...). Correct?

ddsharpe avatar Jul 25 '22 16:07 ddsharpe

t you are after the State attribute from JDBCDataSourceRuntime. State= (Running, Suspended, Stopped, Overloaded ...). Correct?

Correct !!

jlmolina-oracle avatar Jul 25 '22 16:07 jlmolina-oracle

Do we have any news about this issue ?

jlmolina-oracle avatar Aug 24 '22 11:08 jlmolina-oracle

Please try branch string_metrics.

russgold avatar Sep 01 '22 02:09 russgold

Changes in branch string_metrics are correctly handling the request in this issue, not only for the "state" metric in JDBCDataSourceRuntimeMBeans , but for any string typed metric listed in "stringValues:" , which is correctly cathegorized with the values specified. Hence this issue can be closed

jlmolina-oracle avatar Sep 08 '22 15:09 jlmolina-oracle