[
https://issues.apache.org/jira/browse/NIFI-11870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-11870.
-----------------------------------
Resolution: Feedback Received
Apache NiFi 1.x is no longer maintained and no new release is planned on the
1.x release line. Marking as resolved as part of a cleanup operation. Please
open a new one with an updated description if this is still relevant for NiFi
2.x.
> PrometheusReportingTask : Missing Header Content-Type
> -----------------------------------------------------
>
> Key: NIFI-11870
> URL: https://issues.apache.org/jira/browse/NIFI-11870
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core UI
> Affects Versions: 1.17.0, 1.18.0
> Environment: ope
> Reporter: mayki
> Priority: Minor
>
> 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
>
> {code:java}
> # 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)
> <
> {code}
>
> Thanks
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)