mayki created NIFI-11870:
----------------------------
Summary: 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.18.0, 1.17.0
Environment: ope
Reporter: mayki
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)