-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Response Content not in json format or plain text #32
Comments
@juanprojas what HTTP client are you using?
|
Hi i'm using curl from windows powershell, this brings 2 headers, Content and RawContent, the Content header shows {35, 32, 72, 69...}, the RawContent is ok. |
I have no way to run curl from a windows powershell but this issue doesn't seem related to artemis-prometheus-metrics-plugin it seems more related to the client you are using. |
Hi, i'm receiving as response in the content an array of numbers instead of a json with metrics, also i don't see header with plain text as others targets from prometheus. By the way, in the RawContent response i see the json with metrics but not in the Content header.
Do you know what can i do? or any info that help me to get a response in plain text format? thanks
StatusCode : 200
StatusDescription : OK
Content : {35, 32, 72, 69...}
RawContent : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Date: Wed, 12 Jun 2024 12:56:11 GMT
Headers : {[Transfer-Encoding, chunked], [Date, Wed, 12 Jun 2024 12:56:11 GMT]}
RawContentLength : 210209
Normal response from prometheus target:
StatusCode : 200
StatusDescription : OK
Content : # HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile...
RawContent : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: text/plain; version=0.0.4; charset=utf-8; escaping=values
Date: Wed, 12 Jun 2024 16:31:31 GMT
Forms : {}
Headers : {[Transfer-Encoding, chunked], [Content-Type, text/plain; version=0.0.4; charset=utf-8;
escaping=values], [Date, Wed, 12 Jun 2024 16:31:31 GMT]}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : System.__ComObject
RawContentLength : 69393
The text was updated successfully, but these errors were encountered: