Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-3148

Unable to push metrics via pushgateway reporter with https

    XMLWordPrintableJSON

Details

    • 0

    Description

      Ref issue: https://github.com/apache/hudi/issues/4496

       

      --hoodie-conf hoodie.metrics.on=true
      --hoodie-conf hoodie.metrics.reporter.type=PROMETHEUS_PUSHGATEWAY
      --hoodie-conf hoodie.metrics.pushgateway.host=pushgateway.prod.some-tech.in
      --hoodie-conf hoodie.metrics.pushgateway.port=443
      --hoodie-conf hoodie.metrics.pushgateway.delete.on.shutdown=false
      --hoodie-conf hoodie.metrics.pushgateway.job.name=loan_origination_manager_statuses_mgck
      --hoodie-conf hoodie.metrics.pushgateway.random.job.name.suffix=false 

       

       

      stacktrace:

      java.io.IOException: Response code from http://pushgateway.prod.some-tech.in:443/metrics/job/loan_origination_manager_statuses_mgck was 400, response body: <html>
      <head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
      <body>
      <center><h1>400 Bad Request</h1></center>
      <center>The plain HTTP request was sent to HTTPS port</center>
      </body>
      </html>
      
      	at io.prometheus.client.exporter.PushGateway.doRequest(PushGateway.java:325)
      	at io.prometheus.client.exporter.PushGateway.pushAdd(PushGateway.java:160)
      	at org.apache.hudi.metrics.prometheus.PushGatewayReporter.report(PushGatewayReporter.java:72)
      	at org.apache.hudi.metrics.prometheus.PushGatewayMetricsReporter.report(PushGatewayMetricsReporter.java:64)
      	at org.apache.hudi.metrics.Metrics.reportAndCloseReporter(Metrics.java:62)
      	at java.lang.Thread.run(Thread.java:748) 

       

      Attachments

        Issue Links

          Activity

            People

              shivnarayan sivabalan narayanan
              shivnarayan sivabalan narayanan
              sivabalan narayanan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: