[ https://issues.apache.org/jira/browse/SPARK-38409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17523400#comment-17523400 ]
Apache Spark commented on SPARK-38409: -------------------------------------- User 'jkylling' has created a pull request for this issue: https://github.com/apache/spark/pull/36234 > PrometheusServlet exports gauges with null values > ------------------------------------------------- > > Key: SPARK-38409 > URL: https://issues.apache.org/jira/browse/SPARK-38409 > Project: Spark > Issue Type: Bug > Components: Spark Core > Affects Versions: 3.2.1 > Reporter: Jonas > Priority: Major > > [PrometheusServlet|#L63] exports gauges with value null as {{{}gauge_name{} > null{}}}. This can for instance happen if one initializes a > [DefaultSettableGauge|https://www.javadoc.io/static/io.dropwizard.metrics/metrics-core/4.2.0-beta.3/com/codahale/metrics/DefaultSettableGauge.html] > without a default value. Null values are not scraped by Prometheus as null > is not a valid floating point value. A null value prevents any metrics from > being scraped and the endpoint will be considered to be down by Prometheus. A > solution could be to omit listing the gauge if its value is null. -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org