Skip to content

Conversation

carlosalberto
Copy link
Contributor

Added a modified contrib's httpcheckreceiver to log responses (which we plan to upstream). Code diff can be seen here: https://github.com/open-telemetry/opentelemetry-collector-contrib/compare/main...carlosalberto:httpcheckreceiver-log-response?expand=1

The responses from the checks can be reported as logs, including response body, duration (nanoseconds), endpoint and status code. httpcheck MUST be enabled for both metrics and logs, e.g.

service:
  pipelines:
    metrics:
      receivers: [otlp, httpcheck]
      processors: [batch]
      exporters: [debug]
    logs:
      receivers: [otlp, httpcheck]
      processors: [batch]
      exporters: [debug]

@smithclay
Copy link
Contributor

🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants