httpcheck returns 1 even if http_status_class & http_status_code is not the same #39683
Labels
bug
Something isn't working
needs triage
New item requiring triage
receiver/httpcheck
HTTP Check receiver
Component(s)
receiver/httpcheck
What happened?
Description
Getting status code from a healthcheck URL with
receivers/httpcheck
of services that is up return 1 also whenhttp_status_class
&http_status_code
are not equal.Steps to Reproduce
Expected Result
When service is up,
http_status_code: 200
is sent so only the line withhttp_status_class: 2xx
should be at one.When I request in clickhouse (SigNoz stack) with
I got answer like
I can see
unit: 1
and I interprete this as 1.For exemple in this 2xx check
Actual Result
Getting 1 for 2xx, 0 for 3xx to 5xx.
Collector version
v0.111.39
Environment information
Environment
OS: RedHat 8.10
Compiler: Compilled with
go version go1.23.6 (Red Hat 1.23.6-1.module+el8.10.0+22945+b2c96a17) linux/amd64
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: