Skip to content

Materializing kubernetes.io/name label in otel_logs #2110

@czephyr

Description

@czephyr

I'm trying to materialize the kubernetes.io/name label in the logs table like this:

`k8s.pod.labels.app.kubernetes.io/name` LowCardinality(String) MATERIALIZED ResourceAttributes['k8s.pod.labels.app.kubernetes.io/name'] CODEC(ZSTD(1)),

It looks like HyperDx is not able to handle the / in the field name, Clickhouse logs this error:

DB::Exception: Unknown expression or function identifier `k8s.pod.labels.app.kubernetes.io` in scope  sampledData. Maybe you meant: ['k8s.pod.labels.app.kubernetes.io/name']

Note: I'm using a custom ingestion pipeline, not the Otel exporter, so maybe this field is named differently when shipping natively?

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