Skip to content

Add a self-healthcheck capability to the otelcol-contrib bundle #40517

Open
@trajano

Description

@trajano

Component(s)

No response

Is your feature request related to a problem? Please describe.

https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/healthcheckv2extension provides a healthcheck extension that is accessed externally. Can the contrib image include a tool like curl or something fancier like grpcurl that does the healthcheck on the container itself?

Describe the solution you'd like

The Dockerfile that builds the otelcol-contrib image adds HEALTHCHECK and uses grpcurl to check the health of otelcol-contrib and the default config comes with healthcheckv2extension enabled.

The HEALTHCHECK should be disabled by default and enabled only if the environment variable SELF_HEALTHCHECK=1 is set (this ensures backwards compatibility)

Describe alternatives you've considered

Well the only other alternative I can think of is to make a custom otelcol-contrib image that adds grpcurl and the healthcheck

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions