Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-11870

PrometheusReportingTask : Missing Header Content-Type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.17.0, 1.18.0
    • None
    • Core UI
    • None
    • ope

    Description

      Hello,

      Do you know why We don't receive Content-Type header when we do curl from PrometheusReportingTask ?

      this case, we are an issue with Dynatrace communication which needs the Content-Type Header 

       

      # curl -v http://localhost:9092/metrics/  |more
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* About to connect() to localhost port 9092 (#0)
      *   Trying ::1...
      * Connection refused
      *   Trying 127.0.0.1...
      * Connected to localhost (127.0.0.1) port 9092 (#0)
      > GET /metrics/ HTTP/1.1
      > User-Agent: curl/7.29.0
      > Host: localhost:9092
      > Accept: */*
      >
      < HTTP/1.1 200 OK
      < Date: Fri, 28 Jul 2023 12:48:24 GMT
      < Transfer-Encoding: chunked
      < Server: Jetty(9.4.38.v20210224)
      <
       

       

      Thanks 

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            mayki mayki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: