Skip to content

Chart doesn't configure frontend collectorUrl properlyΒ #110

@srcreigh

Description

@srcreigh

Hi! Thanks for the great tool.

I think the helm chart uses the wrong env var to pass otlpExporterEndpoint to the frontend.

I deployed HyperDX with kubernetes, and the app seemed to endlessly send data to localhost:4318, no matter what helm chart values I set.

So I dug around, found that the HyperDX app/frontend uses an env var NEXT_PUBLIC_OTEL_EXPORTER_OTLP_ENDPOINT to initialize HyperDX browser trace/log sender.

The problem is that the helm chart sets OTEL_EXPORTER_OTLP_ENDPOINT, not NEXT_PUBLIC_OTEL_EXPORTER_OTLP_ENDPOINT.

https://github.com/hyperdxio/helm-charts/blob/2161d8151b434c81ab6aab6c33b32f2827031099/charts/hdx-oss-v2/templates/configmaps/app-configmap.yaml

I think it's a mistake and the chart should just get updated to set NEXT_PUBLIC_OTEL_EXPORTER_OTLP_ENDPOINT. The OTEL_EXPORTER_OTLP_ENDPOINT value does not seem to be used for anything except mapping to NEXT_PUBLIC_* for docker deployments.

There is a workaround to patch the config map to set NEXT_PUBLIC_*, but it would be better to fix the chart imo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions